dircmp

github crates.io docs.rs build status

Compare two folders for the similarities and differences.

Dependency

toml [dependencies] dircmp = "0.1.0"

Usage

Default usage:

```rust let cmp = dircmp::Comparison::default();

let result = cmp .compare( Path::new("/tmp/a"), Path::new("/tmp/b"), ) ```

Ignore components:

```rust use regex::RegexSet;

let ignores = let set = RegexSet::new(&[ r"foo", r"bar", ]).expect("should compile");

let cmp = dircmp::Comparison::new(ignores);

let result = cmp .compare( Path::new("/tmp/a"), Path::new("/tmp/b"), ) ```

Copyright

Copyright (c) 2022 @jondot. See LICENSE for further details.