1
0
Fork
You've already forked dirdiff
0
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.
2026年02月19日 10:51:48 +01:00
src Fix filepath for checksum mismatch 2026年02月19日 10:51:48 +01:00
testdata Add simple test script 2023年05月14日 12:16:57 +02:00
.gitignore Initial commit: Raw implementation of directory diffs 2023年05月12日 10:37:38 +02:00
Cargo.lock Update dependencies 2026年02月19日 10:13:40 +01:00
Cargo.toml Update Rust Edition to 2024 2026年02月19日 10:49:07 +01:00
LICENSE Initial commit: Raw implementation of directory diffs 2023年05月12日 10:37:38 +02:00
README Add README 2023年05月12日 11:11:11 +02:00
runtest.sh Add simple test script 2023年05月14日 12:16:57 +02:00

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.