1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

Added File.getTail()

e.g. {plex.tail}
This commit is contained in:
Reinhard Pointner 2017-01-27 17:45:17 +08:00
parent b8884e432f
commit 892e0d70fb

View File

@ -468,6 +468,10 @@ public class ExpressionFormatMethods {
return FileUtilities.listPath(self).get(0);
}
public static File getTail(File self) {
return FileUtilities.getRelativePathTail(self, FileUtilities.listPath(self).size() - 1);
}
public static List<File> listPath(File self) {
return FileUtilities.listPath(self);
}