# pathsub Subtract one path from another, yielding the subtraction difference rather than relative path, unlike [pathdiff](https://crates.io/crates/pathdiff)
Version badge Downloads badge License badge
## Example: ```rust use pathsub::sub_paths; use std::path::Path; let a = Path::new("foo/bar"); let b = Path::new("foo"); sub_paths(a, b); // Some("bar") ```