cleanup, docs
This commit is contained in:
@@ -2,14 +2,16 @@
|
||||
String basename(String fn)
|
||||
|
||||
:params
|
||||
fn : raw filename
|
||||
return value : the file's name
|
||||
fn : a path
|
||||
return value : the final path component
|
||||
|
||||
:content
|
||||
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");
|
||||
|
||||
:see
|
||||
>sys
|
||||
|
||||
:content
|
||||
Isolates the file name component from a path or file name.
|
||||
|
||||
:example
|
||||
print("basename example\n");
|
||||
dirname
|
||||
path_join
|
||||
|
||||
Reference in New Issue
Block a user