#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

#48 in Filesystem

Download history 10674/week @ 2021-08-11 11981/week @ 2021-08-18 14208/week @ 2021-08-25 14729/week @ 2021-09-01 16838/week @ 2021-09-08 16390/week @ 2021-09-15 17107/week @ 2021-09-22 18095/week @ 2021-09-29 18108/week @ 2021-10-06 20182/week @ 2021-10-13 16397/week @ 2021-10-20 17193/week @ 2021-10-27 16946/week @ 2021-11-03 13857/week @ 2021-11-10 14840/week @ 2021-11-17 9127/week @ 2021-11-24

57,589 downloads per month
Used in 130 crates (10 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