pub fn path_depth<P>(path: P) -> usizewhere P: AsRef<Path>,
Get the depth of a path (number of components)