1 unstable release
0.1.1 | Dec 11, 2023 |
---|---|
0.1.0 |
#1596 inFilesystem
6KB
58lines
pathsub
Subtract one path from another, yielding the subtraction difference rather than relative path, unlikepathdiff
Example:
usepathsub::sub_paths;usestd::path::Path;let a=Path::new("foo/bar");let b=Path::new("foo");sub_paths(a, b);// Some("bar")
lib.rs
:
pathsub
Subtract one path from another, returns subtraction difference not the relative path
Example:
usepathsub::sub_paths;usestd::path::Path;let a=Path::new("foo/bar");let b=Path::new("foo");sub_paths(a, b);// Some("bar")
Made with <3 by Dervex