Crate pathsub

source ·
Expand description

pathsub

Subtract one path from another, returns subtraction difference not the relative path

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

Made with <3 by Dervex

Functions

  • Subtract other from path (in this order)