dirname

Command: dirname


Synopsis
string dirname -> string
File
lib/sli/filesystem.sli
Parameters
string: Name of the directory
Author
Yury V. Zaytsev and Jochen M. Eppler
Description
Print NAME with its trailing /component removed;
if NAME contains no /'s output `.' (meaning the current directory).
FirstVersion
November 2012
Examples
(./../test/dir/foo.sli) dirname -> (./../test/dir)