This commit is contained in:
Reinhard Pointner 2016-04-05 18:06:14 +00:00
parent 2d053909db
commit 8177a0959a
2 changed files with 7 additions and 3 deletions

View File

@ -47,4 +47,4 @@ pattern.diskfolder.entry: BDMV|HVDVD_TS|VIDEO_TS|AUDIO_TS|VCD|MovieObject.bdmv|V
folder.media.roots: /Volumes:/Users:/home:/mnt:/media
# system file pattern
pattern.system.files: [.@].+|bin|initrd|opt|sbin|var|dev|lib|proc|sys|var.defaults|etc|lost.found|root|tmp|etc.defaults|mnt|run|usr|System.Volume.Information
pattern.system.files: [.@][a-z]+|bin|initrd|opt|sbin|var|dev|lib|proc|sys|var.defaults|etc|lost.found|root|tmp|etc.defaults|mnt|run|usr|System.Volume.Information

View File

@ -58,12 +58,12 @@ public class FastFile extends File {
@Override
public File getCanonicalFile() throws IOException {
return canonicalFile != null ? canonicalFile : (canonicalFile = new FastFile(super.getCanonicalFile()));
return canonicalFile != null ? canonicalFile : (canonicalFile = get(super.getCanonicalFile()));
}
@Override
public File getParentFile() {
return parentFile != null ? parentFile : (parentFile = new FastFile(super.getParentFile()));
return parentFile != null ? parentFile : (parentFile = get(super.getParentFile()));
}
@Override
@ -209,4 +209,8 @@ public class FastFile extends File {
throw new UnsupportedOperationException();
}
public static FastFile get(File f) {
return f == null ? null : new FastFile(f);
}
}