PATH::BASE
SourceBASE 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
SourceCLEAN 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
SourceDIR returns the directory component of path.
Argument | Type | Default value | Description |
path |
String |
The path. |
Returns String
The directory component of path.
PATH::EXT
SourceEXT 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
SourceIS_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
SourceJOIN 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
SourceMATCH 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
SourceSEPARATE 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.