How to get the latest path element in the directory?

I suspect there is a simpler way… This is not tested:

{{ path.Base (path.Split .Path).Dir }}

The above is a mouthful, too, I guess, but slighly better.

6 Likes