Skip to content

DirectoryName

Returns the directory portion of a path, with a trailing slash.

$ wo 'DirectoryName["/path/to/file.txt"]'
/path/to/