This tool compares files between two directories, identifying unique files in each directory and files that have identical content but are located in different directories. It uses the BLAKE3 hashing algorithm for efficient and secure file content comparison.
To use this tool, you must have Rust and Cargo installed on your machine. If you haven't installed Rust and Cargo yet, you can follow the instructions here.
-
Clone this repository to your local machine using git:
git clone https://github.com/yourusername/dirscomp.git cd dirscomp
-
Build the project with Cargo:
cargo build --release
The
--release
flag builds the project in release mode, which optimizes the binary for performance.
After building the project, you can run the tool using Cargo or directly from the target directory. To use Cargo, navigate to the project root directory and run:
cargo run -- <path_to_directory1> <path_to_directory2>
Alternatively, you can run the compiled binary in target/release directly:
dirscomp <path_to_directory1> <path_to_directory2>
Replace <path_to_directory1>
and <path_to_directory2>
with the paths to the directories you wish to compare.
- Fast Comparison: Utilizes the BLAKE3 hashing algorithm for fast and secure content comparison.
- Cross-platform: Runs on any platform that Rust supports, including Windows, macOS, and Linux.
- Easy to Use: Simple command-line interface for straightforward operation.
Contributions are welcome! If you have suggestions for improvements or encounter any issues, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.