UCE Docs / dirname

Signature

String dirname(String fn)

Parameters

fn : a path
return value : the directory portion of the path

Returns everything in a path except the final component — i.e. the containing directory.

Example

print(dirname("/var/www/site/index.uce"), "\n");
Output
/var/www/site