def path.parent
import bend-kit-files@0.3.1.0/files.bend as Filesimport Base
90def path.parent(p: String) -> String:
91 +n = path.normalize(p)
92 path.norm.fin(path.is_absolute(n),
93 String.join(List.reverse(&2, String,
94 List.tail(&2, String, List.reverse(&2, String, String.split(n, '/')))), "/"))