mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
proper enter bulk mode by fixing calculation of number of created directoriesd when created directory does not exist (VirtualFileCreateEvent has null file but proper directory flag)
This commit is contained in:
@@ -354,7 +354,11 @@ public class DirectoryIndexImpl extends DirectoryIndex {
|
||||
}
|
||||
} else if(event instanceof VFileCreateEvent) {
|
||||
VirtualFile file = event.getFile();
|
||||
if (file != null && file.isDirectory()) directoriesCreated += 1 + countDirectories(file, MAX_DEPTH_TO_COUNT);
|
||||
if (file != null && file.isDirectory() ||
|
||||
file == null && ((VFileCreateEvent)event).isDirectory()
|
||||
) {
|
||||
directoriesCreated += 1 + countDirectories(file, MAX_DEPTH_TO_COUNT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user