path.normalize
path.normalize
Function
Normalize path text, removing . and statically offsetable ...
Syntax
path(text).normalize()
Parameters
None.
Return value
| Type | Description |
|---|---|
| String | The normalized path text. |
Code Example
result = path('root/a/../b.txt').normalize() // Output: root/b.txt print result
Notes
- Return values use
/as delimiter.