def depth
import ezx@1.11.0.0/src/git/git.bend as Gitimport Base
import ezx@1.11.0.0/src/pkg/path.bend as P
233# how many components a path has, which is how far down it sits
234def depth(path: String) -> Nat:
235 List.length(&2, String, String.split(P.norm(path), '/'))