PATH::BASE

Source

BASE returns the last component of the path or the path itself if it does not contain any directory separators.

Argument Type Default value Description
path String The path.

Returns String The last component of the path.


PATH::CLEAN

Source

CLEAN returns the shortest path name equivalent to path.

Argument Type Default value Description
path String The path.

Returns String The shortest path name equivalent to path


PATH::DIR

Source

DIR returns the directory component of path.

Argument Type Default value Description
path String The path.

Returns String The directory component of path.


PATH::EXT

Source

EXT returns the extension of the last component of path.

Argument Type Default value Description
path String The path.

Returns String The extension of the last component of path.


PATH::IS_ABS

Source

IS_ABS reports whether the path is absolute.

Argument Type Default value Description
path String The path.

Returns Boolean True if the path is absolute.


PATH::JOIN

Source

JOIN joins any number of path elements into a single path, separating them with slashes.

Argument Type Default value Description
elements String, repeated String[] The path elements

Returns String Single path from the given elements.


PATH::MATCH

Source

MATCH reports whether name matches the pattern.

Argument Type Default value Description
pattern String The pattern.
name String The name.

Returns Boolean True if the name matches the pattern.


PATH::SEPARATE

Source

SEPARATE separates the path into a directory and filename component.

Argument Type Default value Description
path String The path

Returns Any[] First item is a directory component, and second is a filename component.