Add File.isImage()
This commit is contained in:
parent
9a671e879f
commit
8177d30c96
|
@ -48,5 +48,5 @@ subtitle/SAMI: smi sami
|
|||
subtitle/WebVTT: vtt
|
||||
subtitle/VobSub: vobsub sub idx
|
||||
|
||||
image/jpg: jpg jpeg
|
||||
image/jpg: jpg jpeg tbn
|
||||
image/png: png
|
||||
|
|
|
@ -104,6 +104,10 @@ public class ScriptShellMethods {
|
|||
return ARCHIVE_FILES.accept(self);
|
||||
}
|
||||
|
||||
public static boolean isImage(File self) {
|
||||
return IMAGE_FILES.accept(self);
|
||||
}
|
||||
|
||||
public static boolean isDisk(File self) {
|
||||
// check disk folder
|
||||
if (self.isDirectory() && MediaDetection.isDiskFolder(self)) {
|
||||
|
|
Loading…
Reference in New Issue