Call stringByStandardizingPath on moved paths

This commit is contained in:
Corey Johnson
2013-03-01 10:19:53 -08:00
committed by probablycorey
parent 82bce082ef
commit 5e1701f8db

View File

@@ -245,7 +245,7 @@ static NSMutableArray *gPathWatchers;
char pathBuffer[MAXPATHLEN];
fcntl((int)event.ident, F_GETPATH, &pathBuffer);
close(event.ident);
newPath = [NSString stringWithUTF8String:pathBuffer];
newPath = [[NSString stringWithUTF8String:pathBuffer] stringByStandardizingPath];
if (!newPath) {
NSLog(@"WARNING: Ignoring rename event for deleted file '%@'", path);
continue;