fpath (<file>)
string
The directory part of a file path name. If there is no directory part, an empty string is returned.
<file>
The name of the file to be queried. The file may or may not exist.
This will return the value '/usr/text/'.
string f = '/usr/text/names.txt' string dirpart = fpath(f)
Functions: |