https://github.com/valentinlibouton/find_duplicates
https://github.com/valentinlibouton/find_duplicates
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/valentinlibouton/find_duplicates
- Owner: ValentinLibouton
- Created: 2023-05-23T10:52:00.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-23T16:48:43.000Z (about 3 years ago)
- Last Synced: 2024-12-31T11:41:38.758Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Find Duplicates
Find Duplicates is a command-line tool for searching and identifying duplicate files within a directory. It compares files based on their name and size and provides options to display the duplicate files or generate output in various formats.
## Installation
1. Clone the repository:
```bash
git clone git@github.com:ValentinLibouton/find_duplicates.git
```
2. Navigate to the project directory:
```bash
cd find_duplicates
```
3. Install the required dependencies:
```bash
pip install -r requirements.txt
```
## Usage
Run the script `find_duplicates.py` with the following command-line arguments:
```bash
python find_duplicates.py directory [output_type] [--duplicates]
```
- `directory` (required): The directory to search for duplicate files.
- `output_type` (optional): The type of output. Supported options are "terminal", "html", and "csv". The default is "terminal".
- `--duplicates` (optional): Display only duplicate files. If specified, the script will only show duplicate files; otherwise, it will display all files in the directory.
Examples:
- Search for duplicate files in a directory and display the results in the terminal:
```bash
python find_duplicates.py /path/to/directory
```
- Search for duplicate files in a directory and generate an HTML report:
```bash
python find_duplicates.py /path/to/directory html
```
- Search for duplicate files in a directory and generate a CSV file:
```bash
python find_duplicates.py /path/to/directory csv
```
- Search for duplicate files only and display the results in the terminal:
```bash
python find_duplicates.py /path/to/directory terminal --duplicates
```
## License
- This project is licensed under **...**