Function: fpath

Syntax

fpath (<file>)

Type

string

Returns

The directory part of a file path name. If there is no directory part, an empty string is returned.

Parameters

Example

This will return the value '/usr/text/'.

string f = '/usr/text/names.txt'
string dirpart = fpath(f)

See Also

Functions:

fext(string),flocal (string),fname(string),full (string)