Show HN: Dupfinder – a lightweight Python tool for finding duplicate files githu...
Show HN @show
Show HN: Dupfinder – a lightweight Python tool for finding duplicate files github.com · 2 points · 0 comments · HN thread
TL;DR Dupfinder is a small, dependency-free Python command-line tool that recursively scans a directory and groups identical files by SHA-256 hash. It only compares files whose sizes match, skips inaccessible files without stopping, and never modifies or deletes anything. The project is MIT-licensed, requires Python 3.10 or newer, and ships with unittest-based tests.
- Usage is a single command: python dupfinder.py "path/to/directory", with the directory scanned recursively.
- Files are first grouped by size, and SHA-256 hashes are computed only for files whose sizes match, which avoids hashing most files.
- Duplicate groups are printed with their file size and paths, followed by totals of duplicate groups and files examined.
- Files that cannot be accessed are handled without aborting the scan.
- The tool is read-only: it does not modify or delete files, so the user decides what to remove.
- It has no third-party dependencies and its tests run with python -m unittest -v.
Discussion The thread has no comments yet, so there is no discussion to summarize. The post was submitted as a Show HN with 2 points.
#python #commandLineTools #duplicateFiles #sha256 #showHN #fileManagement