path.dirname

path.dirname

path.dirname

Function

Returns the parent directory path.

Syntax

Parameters

None.

Return value

TypeDescription
StringParent directory path; returns an empty string if there is no parent directory.

Code Example

Notes

  • No access to the file system.