mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-25 09:18: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 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user