fs.filename

fs.filename

fs.filename

Function

Returns the part of the last level name of the path minus the extension.

Syntax

Parameters

No parameters.

Return value

TypeDescription
StringReturns the main name of the file.

Example

Notes

  • Returns an empty string if the path has no primary name part.