Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 818 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 818 Bytes

pathsub

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

Version badge Downloads badge License badge Docs badge

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