def path.norm.pop.if
import bend-kit-files@0.3.1.0/files.bend as Filesimport Base
30def path.norm.pop.if(up: Bool, h: String, t: List<&2, String>) ->
31 List<&2, String>:
32 match up:
33 case True{}:
34 ".." <> (h <> t)
35 case False{}:
36 t