def path.norm.fin
import bend-kit-files@0.3.1.0/files.bend as Filesimport Base
71def path.norm.fin(abs: Bool, body: String) -> String:
72 match abs:
73 case True{}:
74 "/" ++ body
75 case False{}:
76 match body:
77 case SNil{}:
78 "."
79 case SCon{h, t}:
80 SCon{h, t}