From 060bb1f037483bbc525073ef5ff34881178febc0 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 26 Apr 2014 15:13:43 +0000 Subject: [PATCH] * String.toFile() for convenience --- source/net/filebot/format/ExpressionFormatMethods.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/net/filebot/format/ExpressionFormatMethods.java b/source/net/filebot/format/ExpressionFormatMethods.java index 67495805..be6eb3bc 100644 --- a/source/net/filebot/format/ExpressionFormatMethods.java +++ b/source/net/filebot/format/ExpressionFormatMethods.java @@ -299,4 +299,8 @@ public class ExpressionFormatMethods { return attr.lastModifiedTime().toMillis(); } + public static File toFile(String self) { + return new File(self); + } + }