Skip to content

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

License

Notifications You must be signed in to change notification settings

DervexDev/pathsub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages