Skip to content

format

typescript
Path.GetFileName(path)

class: Path

description

Returns the file name (including the extension) of the specified path.

parameter

param_nametypedescription
pathstringThe specified path.

return

typedescription
stringA string representing the file name.

code example