mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
sometimes isDirectory costs a lot
This commit is contained in:
@@ -35,9 +35,13 @@ public class CoreLocalVirtualFile extends VirtualFile {
|
||||
private final boolean isDirectory;
|
||||
|
||||
public CoreLocalVirtualFile(@NotNull CoreLocalFileSystem fileSystem, @NotNull File ioFile) {
|
||||
this(fileSystem, ioFile, ioFile.isDirectory());
|
||||
}
|
||||
|
||||
public CoreLocalVirtualFile(@NotNull CoreLocalFileSystem fileSystem, @NotNull File ioFile, boolean isDirectory) {
|
||||
myFileSystem = fileSystem;
|
||||
myIoFile = ioFile;
|
||||
isDirectory = ioFile.isDirectory();
|
||||
this.isDirectory = isDirectory;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user