Skip to content

format

typescript
Path.GetDirectoryName(path)

class: Path

description

Returns the directory name of the specified path.

parameter

param_nametypedescription
pathstringThe specified path.

return

typedescription
stringA string representing the directory.

code example