filename

.filename path:{String} extension:{Boolean = true} -> String

Retrieves the name of a file located in path.

Return

the name of the file located in path

Parameters

path

path of the file (with extension)

extension

whether to include the file extension in the name

Throws

if the file does not exist

Wiki page

File data