mk_dirname — Strip last component from filename
mk_dirname filename
mk_dirname
filename
Strips the last component from a filename, leaving the name of the directory containing the file, and sets result to the result.
result