UCE Docs / basename

Signature

String basename(String fn)

Parameters

fn : a path
return value : the final path component

Returns the last component of a path — the file or directory name without its leading directories.

Example

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