#directory #diff #fs

dir-diff

Do two directories have different contents?

5 unstable releases

0.3.2 Oct 8, 2019
0.3.1 May 29, 2018
0.3.0 Mar 28, 2017
0.2.0 Mar 28, 2017
0.1.0 Mar 28, 2017

#95 in Filesystem

Download history 208/week @ 2019-11-07 358/week @ 2019-11-14 184/week @ 2019-11-21 149/week @ 2019-11-28 284/week @ 2019-12-05 447/week @ 2019-12-12 165/week @ 2019-12-19 83/week @ 2019-12-26 140/week @ 2020-01-02 292/week @ 2020-01-09 241/week @ 2020-01-16 315/week @ 2020-01-23 318/week @ 2020-01-30 397/week @ 2020-02-06 439/week @ 2020-02-13

1,102 downloads per month
Used in 14 crates (3 directly)

MIT/Apache

425KB
60 lines

dir-diff

Are the contents of two directories different?

Travis Status Appveyor Status Documentation License Crates Status

Mostly useful for integration-style tests when you want to check some generated output.

Example

Using dir-diff in an integration test with tempdir:

extern crate dir_diff;
extern crate tempdir;

#[test]
fn smoke_test() {
    let tmp_dir = TempDir::new("foo").expect("create temp dir failed");

    generate_some_stuff(&tmp_dir);

    assert!(!dir_diff::is_different(&tmp_dir.path(), "path/to/fixture").unwrap());
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies