path.join
path.join
Function
Splice the current path and subsequent path segments.
Syntax
path(base).join(part1, part2, ...)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| part | String | No | None | Path fragment. |
Return value
| Type | Description |
|---|---|
| String | The concatenated and normalized path. |
Code Example
result = path('root').join('docs', 'index.md') // Output: root/docs/index.md print result
Notes
- Return values use
/as delimiter.