def depth

ezx@1.11.0.0 · src/git/git.bend:233

import ezx@1.11.0.0/src/git/git.bend as Git
import 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), '/'))

Uses (6)

Used by (1)