mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 16:58:51 -05:00
* assume the FastFile instances always exist
This commit is contained in:
parent
35859d7b75
commit
10f4091ed4
@ -10,7 +10,6 @@ public class FastFile extends File {
|
||||
|
||||
private Long length;
|
||||
private Long lastModified;
|
||||
private Boolean exists;
|
||||
private Boolean isDirectory;
|
||||
private Boolean isFile;
|
||||
private Boolean isHidden;
|
||||
@ -31,11 +30,6 @@ public class FastFile extends File {
|
||||
return length != null ? length : (length = super.length());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean exists() {
|
||||
return exists != null ? exists : (exists = super.exists());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDirectory() {
|
||||
return isDirectory != null ? isDirectory : (isDirectory = super.isDirectory());
|
||||
@ -85,6 +79,11 @@ public class FastFile extends File {
|
||||
return (listFiles = files);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean exists() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canRead() {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user