Usage
Usage
Command Line Interface
Run the script using the following command:
python -m twinTrim.main <directory> [OPTIONS]
Options
--all: Automatically delete duplicates without asking for confirmation.--min-size: Specify the minimum file size to include in the scan (e.g.,10kb).--max-size: Specify the maximum file size to include in the scan (e.g.,1gb).--file-type: Specify the file type to include (e.g.,.txt,.jpg).--exclude: Exclude specific files by name.--label-color: Set the font color of the output label of the progress bar.--bar-color: Set the color of the progress bar.
Examples
-
Automatic Duplicate Removal:
bash python -m twinTrim.main /path/to/directory --all -
Manual Review and Removal:
bash python -m twinTrim.main /path/to/directory -
Filtered Scan by File Size and Type:
bash python -m twinTrim.main /path/to/directory --min-size "50kb" --max-size "500mb" --file-type "txt"
Dependencies
- Python 3.6+
clickfor command-line interactiontqdmfor progress barsconcurrent.futuresfor multi-threaded processingbeaupyfor interactive selection
Installation
From PyPI
Install the latest release from PyPI using pip:
pip install twinTrim
You can find the project on PyPI.
Setup for Development
Clone the repository and install the required dependencies using Poetry:
git clone https://github.com/Kota-Karthik/twinTrim.git
cd twinTrim
poetry install
poetry shell
If you haven't installed Poetry yet, you can do so by following the instructions on the Poetry website.