Fix handling symlinks in wxOSX wxFileSystemWatcher
Set the correct file path for symlink creation/deletion events. Closes https://github.com/wxWidgets/wxWidgets/pull/2611
This commit is contained in:
committed by
Vadim Zeitlin
parent
0fc936ca41
commit
c3d5853faa
@@ -186,6 +186,10 @@ static void FileNameFromEvent(wxFileName& eventFileName, char* path,
|
|||||||
{
|
{
|
||||||
eventFileName.AssignDir(strPath);
|
eventFileName.AssignDir(strPath);
|
||||||
}
|
}
|
||||||
|
if ( flags & kFSEventStreamEventFlagItemIsSymlink )
|
||||||
|
{
|
||||||
|
eventFileName.Assign(strPath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is the function that the FsEvents API
|
// This is the function that the FsEvents API
|
||||||
|
|||||||
Reference in New Issue
Block a user