Fix directory index for file-based libs

This commit is contained in:
Roman Shevchenko
2012-08-27 21:42:11 +04:00
parent 4c1e3786c3
commit 4540917c0b
@@ -431,7 +431,7 @@ public class DirectoryIndexImpl extends DirectoryIndex {
@Override
public boolean visitFile(@NotNull VirtualFile file) {
if (progress != null) progress.checkCanceled();
if (!file.isDirectory() || isIgnored(file)) return false;
if (!file.isDirectory() && file != dir || isIgnored(file)) return false;
DirectoryInfo info = getOrCreateDirInfo(file);
@@ -477,7 +477,7 @@ public class DirectoryIndexImpl extends DirectoryIndex {
@Override
public boolean visitFile(@NotNull VirtualFile file) {
if (progress != null) progress.checkCanceled();
if (!file.isDirectory() || isIgnored(file)) return false;
if (!file.isDirectory() && file != dir || isIgnored(file)) return false;
DirectoryInfo info = getOrCreateDirInfo(file);