1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* added File.listTree() which might be useful for --filter expressions

This commit is contained in:
Reinhard Pointner 2014-10-29 03:45:30 +00:00
parent 834b8b5205
commit 549e2e47a3

View File

@ -100,6 +100,10 @@ public class ScriptShellMethods {
return DefaultGroovyMethods.find(FileUtilities.getChildren(self), closure) != null;
}
public static List<File> listTree(File self, int maxDepth) {
return FileUtilities.listFiles(singleton(self), maxDepth, false, true, true);
}
public static List<File> getFiles(File self) {
return getFiles(self, null);
}