Back to Pocketbase

Interface dir

static/jsvm/interfaces/filepath.dir.html

latest735 B
Original Source

Interface dir

Hierarchy

  • dir

  • dir(path): string

Dir returns all but the last element of path, typically the path's directory. After dropping the final element, Dir calls [Clean] on the path and trailing slashes are removed. If the path is empty, Dir returns ".". If the path consists entirely of separators, Dir returns a single separator. The returned path does not end in a separator unless it is the root directory.

Parameters

path: string

Returns string

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc