pth
Path utilities (join, split, normalize).
Load with: use pth
Quick example
use pth
result = pthj("value", "value")
prn(result)
Functions
Path separator (auto-detect)
pthsp()
Performs the operation.
pthwp()
Performs the operation.
pthse()
Sets a value.
Join path components
pthj(a, b)
Performs the operation. Takes a, b.
pthj(xs)
Performs the operation. Takes xs.
Split path into components
pths(p)
Performs the operation. Takes p.
Get base name (last component)
pthb(p)
Performs the operation. Takes p.
Get directory name
pthd(p)
Performs the operation. Takes p.
Get extension
pthx(p)
Performs the operation. Takes p.
Get file name without extension
pthn(p)
Performs the operation. Takes p.
Normalize path (resolve . and ..)
pthnm(p)
Performs the operation. Takes p.
Check if absolute path
ptha(p)
Performs the operation. Takes p.
Relative path from base
pthr(p, base)
Performs the operation. Takes p, base.
Clean path (remove redundant separators)
pthc(p)
Performs the operation. Takes p.
Check if path exists
phex(p)
Executes. Takes p.
Get file size
pths(p)
Performs the operation. Takes p.
Get file modification time
ptht(p)
Performs the operation. Takes p.
Notes
- Path utilities - alias for
path.