def up.root
import ezx@1.11.0.0/src/pkg/path.bend as Pathimport Base
23# a climb with nothing left to climb off: at the root it goes nowhere, and in a
24# relative path it is kept, since the package may still be re-rooted under it
25def up.root(abs: Bool) -> List<&2, String>:
26 match abs:
27 case True{}:
28 []
29 case False{}:
30 [".."]