Compare directories
- Rust 98.5%
- Shell 1.5%
|
Florian Limberger
3bdd4130a6
Fix filepath for checksum mismatch
Print the actual path of the right side file on checksum mismatches. |
||
|---|---|---|
| src | Fix filepath for checksum mismatch | |
| testdata | Add simple test script | |
| .gitignore | Initial commit: Raw implementation of directory diffs | |
| Cargo.lock | Update dependencies | |
| Cargo.toml | Update Rust Edition to 2024 | |
| LICENSE | Initial commit: Raw implementation of directory diffs | |
| README | Add README | |
| runtest.sh | Add simple test script | |
A simple tool to compare directories, inspired by diff(1). It walks the file trees of the given directories, calculates the sha256 checksums of files with the same path and compare them. The output format is modelled after diff(1), but instead of ed(1) commands it reports a short descriptioin of the difference. Example: $ dirdiff a b checksum mismatch < a/zoink --- > a/zoink file type mismatch < a/blub: file --- > b/blub: directory file missing < a/bar file missing > b/baz Features that will never be implemented: - Coloured output: Although it is written in Rust, this is a Unix tool and as such it has a minimal user interface which does not change its output depending on how it is run. - Reporting when directories have no common files: The purpose of this tool is to report on the differences, not the commonalities between two directories. It is up to the user to interpret its output correctly.