pub fn path_depth(path: &Path) -> usize
Returns the “depth” of a path, i.e. the number of components.