From 5e1701f8dbddd4953d9ab4a76404b6b4d1c898b0 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Fri, 1 Mar 2013 10:19:53 -0800 Subject: [PATCH] Call stringByStandardizingPath on moved paths --- native/path_watcher.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/path_watcher.mm b/native/path_watcher.mm index 2bf5907e4..e5cc65afe 100644 --- a/native/path_watcher.mm +++ b/native/path_watcher.mm @@ -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;