171
edits
(→Todo: added a note to do glob) |
m (linked the page on "join") |
||
Line 87: | Line 87: | ||
; join(...) | ; join(...) | ||
: takes a variadic list of path Strings, joins them on the file system's path separator, and normalizes the result. | : takes a variadic list of path Strings, joins them on the file system's path separator, and normalizes the result. [[ServerJS/Filesystem_API/Join|details]] | ||
; split(path String) Array | ; split(path String) Array | ||
: returns an array of path components. If the path is absolute, the first component will be an indicator of the root of the file system; for file systems with drives (such as Windows), this is the drive identifier with a colon, like "c:"; on Unix, this is an empty string "". The intent is that calling "join.apply" with the result of "split" as arguments will reconstruct the path. | : returns an array of path components. If the path is absolute, the first component will be an indicator of the root of the file system; for file systems with drives (such as Windows), this is the drive identifier with a colon, like "c:"; on Unix, this is an empty string "". The intent is that calling "join.apply" with the result of "split" as arguments will reconstruct the path. |
edits