1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* assume the FastFile instances always exist

This commit is contained in:
Reinhard Pointner 2014-07-17 13:12:04 +00:00
parent 35859d7b75
commit 10f4091ed4

View File

@ -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;