#directory #diff #fs

dir-diff

Do two directories have different contents?

5 unstable releases

Uses old Rust 2015

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

#125 in Filesystem

Download history 9171/week @ 2023-01-27 9328/week @ 2023-02-03 10726/week @ 2023-02-10 8208/week @ 2023-02-17 16848/week @ 2023-02-24 7713/week @ 2023-03-03 8384/week @ 2023-03-10 7964/week @ 2023-03-17 9497/week @ 2023-03-24 7985/week @ 2023-03-31 9105/week @ 2023-04-07 8393/week @ 2023-04-14 10439/week @ 2023-04-21 8656/week @ 2023-04-28 9768/week @ 2023-05-05 8302/week @ 2023-05-12

38,787 downloads per month
Used in 290 crates (15 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