dirname. Path to file

^file:dirname[filespec]

Returns directory where the specified file/directory (filespec) is located.

Example
#filename
^file:dirname[/a/some.tar.gz]
#directory's name…
^file:dirname[/a/b/]


In both cases the result will be:
/a


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 14.03.2012