Systems
vpathlib
Path helpers for the jobs the built in path functions leave out.
Released v1.0.0 · 2026-09-28use "stdlib/pathlib.ven"
Path text handling not already covered by the standard library's own path builtins, such as joining, splitting and normalizing a file path, built on Venutian's own core text and filesystem operations. It fills specific, real gaps left by the existing path builtins rather than replacing them.
print path_stem("archive.tar.gz")
Reference (6 functions)
API reference
path_stem(path)
The final path component of path with its last suffix removed.
path_stem("archive.tar.gz")path_suffixes(path)
Every suffix of paths final component, in order, as a List of Text.
path_suffixes("archive.tar.gz")path_parts(path)
path split into its individual components as a List of Text, POSIX style.
path_parts("/a/b/c.txt")path_with_name(path, name)
path with its final component's name replaced by name.
path_with_name("/a/b/c.txt", "d.txt")path_with_suffix(path, suffix)
path with its last suffix replaced by suffix.
path_with_suffix("archive.tar.gz", ".zip")