pathsub 0.1.1

Subtract one path from another, yielding the subtraction difference rather than relative path
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented2 out of 2 items with examples
  • Size
  • Source code size: 15.85 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.08 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • DervexDev/pathsub
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • DervexDev

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