Support expressions such as {-vc}

This commit is contained in:
Reinhard Pointner 2017-06-04 22:14:52 +08:00
parent 0ac37d7449
commit 26e816f92d
1 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,10 @@ public class ScriptShellMethods {
return new File(self, path.getPath());
}
public static String negative(String self) {
return '-' + self;
}
public static String getAt(File self, int index) {
return FileUtilities.listPath(self).get(index).getName();
}