pub fn pattern_depth(pattern: &str) -> usize
Calculate the depth of a Files pattern by counting ‘/’ characters.