Revert optimization, because MAC tests fail. phpstorm/132.601
authorSergey Evdokimov <sergey.evdokimov@jetbrains.com>
Fri, 11 Oct 2013 10:13:00 +0000 (14:13 +0400)
committerSergey Evdokimov <sergey.evdokimov@jetbrains.com>
Fri, 11 Oct 2013 10:13:19 +0000 (14:13 +0400)
platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/FileWatcher.java

index 58ad009ffe812cd656f3dbc9046cf458d040b5d8..818b5735c79edd1b320d8895e73406842441c645 100644 (file)
@@ -383,13 +383,13 @@ public class FileWatcher {
       if (fastPath && !changedPaths.isEmpty()) break;
 
       for (String root : flatWatchRoots) {
-        if (FileUtil.namesEqual(path, root)) {
+        if (FileUtil.pathsEqual(path, root)) {
           changedPaths.add(path);
           continue ext;
         }
         if (isExact) {
           String parentPath = new File(path).getParent();
-          if (parentPath != null && FileUtil.namesEqual(parentPath, root)) {
+          if (parentPath != null && FileUtil.pathsEqual(parentPath, root)) {
             changedPaths.add(path);
             continue ext;
           }
@@ -403,7 +403,7 @@ public class FileWatcher {
         }
         if (!isExact) {
           String parentPath = new File(root).getParent();
-          if (parentPath != null && FileUtil.namesEqual(path, parentPath)) {
+          if (parentPath != null && FileUtil.pathsEqual(path, parentPath)) {
             changedPaths.add(root);
             continue ext;
           }