pathsub 0.1.1

Subtract one path from another, yielding the subtraction difference rather than relative path
Documentation

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")