# find_duplicate_files
This program finds duplicate hashed files.
The chosen hashing algorithm was [blake version 3](https://docs.rs/blake3/latest/blake3/).
To build and install from source, run the following command:
```
cargo install find_duplicate_files
```
Another option is to clone/copy the project from github, compile and generate the executable:
```
git clone https://github.com/claudiofsr/find_duplicate_files
cd find_duplicate_files
cargo b -r && cargo install --path=.
```
Finally, to find duplicate files in a directory, run the command:
```
find_duplicate_files
```
View help messages and some options with `find_duplicate_files -h`:
```
find_duplicate_files -h
find duplicate files according to their blake3 hash
Usage: find_duplicate_files [OPTIONS]
Options:
-f, --full_path
Prints full path of duplicate files, otherwise relative path
-g, --generate <GENERATOR>
If provided, outputs the completion file for given shell [possible values: bash, elvish, fish, powershell, zsh]
-j, --json
Print to output in json format
-m, --max_depth <MAX_DEPTH>
Set the maximum depth to search for duplicate files
-o, --omit_hidden
Omit hidden files (starts with '.'), otherwise search all files
-p, --path <PATH>
Set the path where to look for duplicate files, otherwise use the current directory
-s, --size
Sort result by file size, otherwise sort by number of duplicate files
-t, --time
Show total execution time
-h, --help
Print help (see more with '--help')
-V, --version
Print version
```