This repository contains a Python script for identifying and handling duplicate files in a directory and its subdirectories based on their MD5 hash. It allows for filtering by file type and provides options for handling duplicates such as deletion, hard linking, or sym linking.
`main.py` is a Python script to identify all duplicate files in the specified directories. It can also filter by file type and handle duplicates by deleting them or replacing them with hard or symbolic links.
```bash
python main.py [options] directories
```
#### Options
-`--apply-to`: Directories to apply modifications to.
-`--modification`: Action to perform on duplicates - `delete`, `hardlink`, `symlink`, or `show` (default).
-`--mode`: How to apply the modifications - `act`, `preview`, `interactive` (default: `preview`).
-`-f`, `--file-type`: Filter by file type (e.g., `.txt` for text files).