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

Permissions

project-read
to access files located in the project directory
global-read
to access files located outside the project directory

Wiki page

file-data