Skip to content

format

typescript
Path.GetFileNameWithoutExtension(path)

class: Path

description

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

parameter

param_nametypedescription
pathstringThe specified path.

return

typedescription
stringA string representing the file name.

code example