Add File.isImage()

This commit is contained in:
Reinhard Pointner 2017-02-22 22:16:42 +08:00
parent 9a671e879f
commit 8177d30c96
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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)) {