def norm

ezx@1.11.0.0 · src/pkg/path.bend:99

import ezx@1.11.0.0/src/pkg/path.bend as Path
import Base

99# a path with `.` and an inner `..` resolved by text. A leading `..` survives,
100# because a module reached through one re-roots the package rather than
101# escaping it.
102def norm(+path: String) -> String:
103  norm.fin(norm.walk(String.split(path, '/'), Walk{String.starts_with(path, "/"), []}))

Uses (8)

Used by (16)