Support expressions such as {-vc}
This commit is contained in:
parent
0ac37d7449
commit
26e816f92d
|
@ -60,6 +60,10 @@ public class ScriptShellMethods {
|
||||||
return new File(self, path.getPath());
|
return new File(self, path.getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String negative(String self) {
|
||||||
|
return '-' + self;
|
||||||
|
}
|
||||||
|
|
||||||
public static String getAt(File self, int index) {
|
public static String getAt(File self, int index) {
|
||||||
return FileUtilities.listPath(self).get(index).getName();
|
return FileUtilities.listPath(self).get(index).getName();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue