Support 'folder' / 'name' kind of expressions

This commit is contained in:
Reinhard Pointner 2016-08-06 23:49:03 +08:00
parent 5ff7c98e04
commit 8c00c21008
1 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,10 @@ public class ScriptShellMethods {
return new File(self, name);
}
public static File div(String self, String name) {
return new File(self, name);
}
public static String getAt(File self, int index) {
return FileUtilities.listPath(self).get(index).getName();
}