compare-dir 0.5.0

A high-performance directory comparison tool and library
Documentation

CI-badge crate-badge docs-badge

compare-dir

Compare two directories and show the differences, or find duplicated files within a single directory.

  • For two directories, it compares the file contents if the file sizes are the same. Useful to verify backup copies.
  • For a single directory, it cryptographically hashes matching file sizes to discover exact duplicates.

Installation

cargo install compare-dir

See Releases for the change history.

If you want to install from the local source code:

cargo install --path .

Usage

Compare two directories:

compare-dir <dir1> <dir2>

Find duplicated files in a single directory:

compare-dir <dir>

Please use the -h option to see all options.