sep
path::sepPlatform path separator — / on Unix, \ on Windows.
Pure-string path manipulation (no I/O).
seppath::sepPlatform path separator — / on Unix, \ on Windows.
basenamepath::basename(p) -> stringFinal component of p.
componentspath::components(p) -> list<string>Split p into its components.
extensionpath::extension(p) -> stringExtension of p without the leading dot. Empty string if none.
is_absolutepath::is_absolute(p) -> boolTrue if p is absolute on the current platform.
is_relativepath::is_relative(p) -> boolTrue if p is relative on the current platform.
joinpath::join(a, b, ...) -> stringVariadic path join using the platform separator.
normalizepath::normalize(p) -> stringLexically normalise p — collapse . and .. without consulting the filesystem.
parentpath::parent(p) -> stringDirectory containing p. Empty string if p has no parent.
stempath::stem(p) -> stringBasename of p with the extension stripped.
with_extensionpath::with_extension(p, ext) -> stringReplace (or add) the extension on p.