Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dervexdev/pathsub

Subtract one path from another, yielding the subtraction difference rather than relative path
https://github.com/dervexdev/pathsub

diff os path rust sub

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# pathsub

Subtract one path from another, yielding the subtraction difference rather than relative path, unlike [pathdiff](https://crates.io/crates/pathdiff)


Version badge
Downloads badge
License badge
Docs badge

## Example:

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