[platform] FS probe path compensated for unreliable storage (IDEA-148827)

This commit is contained in:
Roman Shevchenko
2015-12-03 23:00:45 +01:00
parent dae72336d2
commit 85e10805be
@@ -15,6 +15,7 @@
*/
package com.intellij.ide.startup.impl;
import com.intellij.ide.impl.ProjectUtil;
import com.intellij.ide.startup.StartupManagerEx;
import com.intellij.notification.Notification;
import com.intellij.notification.NotificationListener;
@@ -43,6 +44,7 @@ import com.intellij.openapi.vfs.impl.local.FileWatcher;
import com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl;
import com.intellij.openapi.vfs.newvfs.NewVirtualFile;
import com.intellij.openapi.vfs.newvfs.RefreshQueue;
import com.intellij.util.PathUtil;
import com.intellij.util.SmartList;
import com.intellij.util.io.storage.HeavyProcessLatch;
import com.intellij.util.messages.MessageBusConnection;
@@ -256,6 +258,9 @@ public class StartupManagerImpl extends StartupManagerEx {
if (path == null || FileUtil.isAncestor(PathManager.getConfigPath(), path, true)) {
return;
}
if (ProjectUtil.isDirectoryBased(myProject)) {
path = PathUtil.getParentPath(path);
}
boolean actual = FileUtil.isFileSystemCaseSensitive(path);
LOG.info(path + " case-sensitivity: " + actual);