Added File.div(File) to support `plex[0]/az/plex[1..-1]` style formats

This commit is contained in:
Reinhard Pointner 2016-10-10 05:39:25 +08:00
parent ae723574b9
commit 42459b5c45
1 changed files with 10 additions and 6 deletions

View File

@ -40,16 +40,20 @@ import net.filebot.web.WebRequest;
public class ScriptShellMethods { public class ScriptShellMethods {
public static File plus(File self, String name) { public static File plus(File self, String path) {
return new File(self.getPath().concat(name)); return new File(self.getPath().concat(path));
} }
public static File div(File self, String name) { public static File div(File self, String path) {
return new File(self, name); return new File(self, path);
} }
public static File div(String self, String name) { public static File div(String self, String path) {
return new File(self, name); return new File(self, path);
}
public static File div(File self, File path) {
return new File(self, path.getPath());
} }
public static String getAt(File self, int index) { public static String getAt(File self, int index) {