mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
Added File.getTail()
e.g. {plex.tail}
This commit is contained in:
parent
b8884e432f
commit
892e0d70fb
@ -468,6 +468,10 @@ public class ExpressionFormatMethods {
|
|||||||
return FileUtilities.listPath(self).get(0);
|
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) {
|
public static List<File> listPath(File self) {
|
||||||
return FileUtilities.listPath(self);
|
return FileUtilities.listPath(self);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user