Efficient candidate filtering
Files are grouped by exact byte size first, so unique-size files are never hashed.
Day 017 / Python / Local Automation
A read-only Python CLI that confirms byte-identical files with SHA-256 and reports potential storage savings without deleting anything.
Files are grouped by exact byte size first, so unique-size files are never hashed.
Streaming SHA-256 confirms that every reported group contains byte-identical files.
Human-readable and JSON reports use relative paths, skip symlinks and never delete, move or rename files.
Byte-identical matches confirmed
Unnecessary hashing reduced
Potential storage savings calculated
No automatic file changes
Pathlib, os.walk, hashlib, argparse and dataclasses keep the utility portable and dependency-free.
Chunked hashing compares file contents without loading whole files into memory.
Nine deterministic tests cover grouping, nested folders, storage totals, JSON, safety messaging and invalid input.