path
# path - cross-platform path utilities.
Load with: use path
Quick example
use path
result = pathj("value", "value")
prn(result)
Functions
Path separator (auto-detect)
paths()
Performs the operation.
pathw()
Performs the operation.
Join path components
pathj(a, b)
Performs the operation. Takes a, b.
pathj(xs)
Performs the operation. Takes xs.
Split path into components
paths(p)
Performs the operation. Takes p.
Get base name (last component)
pathb(p)
Performs the operation. Takes p.
Get directory name
pathd(p)
Performs the operation. Takes p.
Get extension
pathe(p)
Performs the operation. Takes p.
Get file name without extension
pathn(p)
Performs the operation. Takes p.
Normalize path (resolve . and ..)
pathn(p)
Performs the operation. Takes p.
Check if absolute path
patha(p)
Performs the operation. Takes p.
Relative path from base
pathr(p, base)
Performs the operation. Takes p, base.
Clean path (remove redundant separators)
pathc(p)
Performs the operation. Takes p.
Notes
- File path manipulation - join, resolve, basename, dirname.