# filename

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

Content copied to clipboard

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

- Optional

whether to include the file extension in the name

#### Throws

IllegalArgumentException

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