pathsub Subtract one path from another, yielding the subtraction difference rather than relative path, unlike pathdiff Example: 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")