Home
Download
Manual
SourceForge
Credits
paths.basename(path,[suffix])
Torch Manual
>
Filename Manipulation Package
>
Manipulating file names
>
paths.basename(path,[suffix])
Return the last path component of
path
and optionally strip the suffix
suffix
. This is similar to the well know shell command
"basename"
.