pathsub

Crates.iopathsub
lib.rspathsub
version0.1.1
sourcesrc
created_at2023-12-11 15:07:34.327965
updated_at2023-12-11 18:18:22.053175
descriptionSubtract one path from another, yielding the subtraction difference rather than relative path
homepage
repositoryhttps://github.com/DervexHero/pathsub
max_upload_size
id1065289
size16,205
Dervex (DervexDev)

documentation

README

pathsub

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

Version badge Downloads badge License 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")
Commit count: 6

cargo fmt