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
1 changed files with 4 additions and 0 deletions

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);
}