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:
Richard Gibson
2021-12-08 21:22:21 +00:00
committed by Vadim Zeitlin
parent 0fc936ca41
commit c3d5853faa

View File

@@ -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