[][src]Function bloguen::util::path_depth

pub fn path_depth(path: &str) -> isize

Get how many times this path descends minus how may times it goes up a level

Examples

assert_eq!(path_depth("./uwu/../hewwo/"), 1);