mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
Fix bugs
This commit is contained in:
parent
2d053909db
commit
8177a0959a
@ -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
|
folder.media.roots: /Volumes:/Users:/home:/mnt:/media
|
||||||
|
|
||||||
# system file pattern
|
# 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
|
||||||
|
@ -58,12 +58,12 @@ public class FastFile extends File {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getCanonicalFile() throws IOException {
|
public File getCanonicalFile() throws IOException {
|
||||||
return canonicalFile != null ? canonicalFile : (canonicalFile = new FastFile(super.getCanonicalFile()));
|
return canonicalFile != null ? canonicalFile : (canonicalFile = get(super.getCanonicalFile()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getParentFile() {
|
public File getParentFile() {
|
||||||
return parentFile != null ? parentFile : (parentFile = new FastFile(super.getParentFile()));
|
return parentFile != null ? parentFile : (parentFile = get(super.getParentFile()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -209,4 +209,8 @@ public class FastFile extends File {
|
|||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static FastFile get(File f) {
|
||||||
|
return f == null ? null : new FastFile(f);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user