diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java index 2c0a6c716d77..07dfa15c6dad 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java @@ -59,7 +59,7 @@ public class RefreshWorker { } else { if (delegate.getProtocol().equals(LocalFileSystem.PROTOCOL) && SystemInfo.isWindows && root.isDirectory() && - (ApplicationManager.getApplication().isUnitTestMode() || Registry.is("filesystem.useNative"))) { + (!ApplicationManager.getApplication().isUnitTestMode() && Registry.is("filesystem.useNative"))) { delegate = new Win32LocalFileSystem(); }