dupefinder
Application finds duplicate files for the specified directory by computing hash of files. Results are displayed in console grouped by hash
dupefinder - cli tool that finds duplicate files on you file system using sha256 hashing algorithm
Usage:
dupefinder [params] <root path>
Example:
dupefinder -e node_modules ./project
Params:
-e value
List of excluded folders
-h see full help
-p int
sets paralelization level for hashing (default 10)
-st int
sets size threshold in kb
-v version
TODO:
- Create basic file walker
- Add basic parameter to cli
- Add ability to provide more dirs to check
- Create output variants (text, json, yaml)
- Add parameter for hash block variable
- Create parameter for block size
- Implement lazy equality check (if first block do not match, do not calculate full hash)
Dependencies
project do not have any external dependency
Build
if using windows:
go build -o dupefinder.exe .
if using linux:
go build -o dupefinder .
Running
To run application find executable and execute following command in terminal:
./dupefinder <root path for recursive search>