From 26e816f92daee66ba1a0a649d7546f4233a63503 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 4 Jun 2017 22:14:52 +0800 Subject: [PATCH] Support expressions such as {-vc} --- source/net/filebot/cli/ScriptShellMethods.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/net/filebot/cli/ScriptShellMethods.java b/source/net/filebot/cli/ScriptShellMethods.java index 3c82326b..0bd1203f 100644 --- a/source/net/filebot/cli/ScriptShellMethods.java +++ b/source/net/filebot/cli/ScriptShellMethods.java @@ -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(); }