1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-25 17:28:51 -05: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 length;
private Long lastModified; private Long lastModified;
private Boolean exists;
private Boolean isDirectory; private Boolean isDirectory;
private Boolean isFile; private Boolean isFile;
private Boolean isHidden; private Boolean isHidden;
@ -31,11 +30,6 @@ public class FastFile extends File {
return length != null ? length : (length = super.length()); return length != null ? length : (length = super.length());
} }
@Override
public boolean exists() {
return exists != null ? exists : (exists = super.exists());
}
@Override @Override
public boolean isDirectory() { public boolean isDirectory() {
return isDirectory != null ? isDirectory : (isDirectory = super.isDirectory()); return isDirectory != null ? isDirectory : (isDirectory = super.isDirectory());
@ -85,6 +79,11 @@ public class FastFile extends File {
return (listFiles = files); return (listFiles = files);
} }
@Override
public boolean exists() {
return true;
}
@Override @Override
public boolean canRead() { public boolean canRead() {
return true; return true;