dogmalang.path
v1.0.0-beta3.0
Published
Path support for Dogma language.
Downloads
6
Readme
dogmalang.path
Built-in path support for the Dogma language.
dir()
Return the parent directory path:
fn dir(...path) : textbase()
Return the entry name, with extension if file:
fn base(...path) : textname()
Return the entry name, without extension if file:
fn name(...path) : textext()
Return the entry extension, with .:
fn ext(...path) : textjoin()
Join a path from multiple parts:
fn join(...path) : textnormalize()
Normalize a path, resolving .. and .:
fn normalize(...path) : text