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:
parent
834b8b5205
commit
549e2e47a3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user