Name

file.basename — Returns the file name with no paths.

Synopsis

file.basename filename

Description

Returns the file's name, with no URL schema or paths.

Example

file.basename file:///foo/bar/bee/bop.txt

Would return

bop.txt