Path Basename
Basename and extension; optional drop extension.
Takes the final path segment and its extension. Optional drop-extension returns the stem as the name. Unlike Safe Filename this does not sanitize characters. Empty path fails.
Basename: app.tar.gz
Extension: gz
Basename: app.tar.gz
Directory: /var/log