Files.path.parent: def of bend-kit-files@0.3.1.0 Import: import bend-kit-files@0.3.1.0/files.bend as Files Lines 90-94 of bend-kit-files@0.3.1.0/files.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-files@0.3.1.0/files.bend&start_line=90&end_line=94 import Base def path.parent(p: String) -> String: +n = path.normalize(p) path.norm.fin(path.is_absolute(n), String.join(List.reverse(&2, String, List.tail(&2, String, List.reverse(&2, String, String.split(n, '/')))), "/")) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.tail https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.join https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.split https://jend.leeeet.dev/definition.txt?path=bend-kit-files@0.3.1.0/files.bend&name=path.is_absolute https://jend.leeeet.dev/definition.txt?path=bend-kit-files@0.3.1.0/files.bend&name=path.norm.fin https://jend.leeeet.dev/definition.txt?path=bend-kit-files@0.3.1.0/files.bend&name=path.normalize