Skip to main content

Get file name

Return the last part of a path, with and without its extension; the file does not need to exist.

Command in the File toolkit · id ooa.file/get_name · 1 input (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileYesFile or folder path.

Outputs​

OutputTypeWhat it is
nameStringName with extension, e.g. report.pdf.
name_without_extensionStringName without the last extension, e.g. report.
extensionStringExtension without the dot, e.g. pdf; empty when there is none.