dirname(string)

Extract the directory out of a string that contains the directory plus the filename. The directory separator can be either of the Unix style "/" or the Windows style "\" characters.

Example

dir = dirname("/usr/local/nz/bin/nzsql")