mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Call stringByStandardizingPath on moved paths
This commit is contained in:
committed by
probablycorey
parent
82bce082ef
commit
5e1701f8db
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user