path.basename

path.basename

path.basename

Function

Returns the file name in the path.

Syntax

Parameters

None.

Return value

TypeDescription
StringFile name.

Code Example

Notes

  • Does not determine whether the target actually exists.