Skip to content

format

typescript
Path.GetPathRoot(path)

class: Path

description

Returns the root directory of the specified path.

parameter

param_nametypedescription
pathstringThe specified path.

return

typedescription
stringThe root directory.

code example