pub fn path_depth(path: &Path) -> usize
Kept as a small helper for callers that need to calculate depth.