zaplicate v1.0.5
Zaplicate ๐งน
Efficiently clean up duplicate file from your directories with zaplicate โ a command-line tool packed with features for a streamlined cleanup process.
Features
Duplicate File Detection ๐ Identify duplicate files using content hashing and transform streams. Eliminate redundant copies effortlessly.
Scan Filters ๐ Focus your cleanup efforts with scan filters based on file size, extensions, and date ranges. Tailor the cleanup to your needs.
Exclusion List ๐ซ Preserve important files by excluding them from the cleanup process. Maintain control over what stays and what goes.
Preview Mode ๐ Preview files marked for deletion before committing. Avoid accidental deletions and ensure accurate cleanup.
Recursive Cleaning ๐ Clean up subdirectories along with the main directory. Keep your entire directory structure organized.
Custom Location ๐๏ธ Specify a custom location path for cleanup, ensuring flexibility and tailored directory cleanup.
Auto Cleaning ๐ค Opt for automated cleanup without the preview step. Efficiently remove files based on your defined criteria.
Installation
Install zaplicate with npm
npm install -g zaplicate
Usage
To start the cleanup process for a specified directory, use the following command:
zaplicate clean [options]
Options:
--version
: Show the version number of the zaplicate.--help
: Show help information for the zaplicate.-l, --location <directory>
: Location of the directory to clean. Use a valid path.-r, --recursive
: Perform recursive cleanup (including subdirectories).-s, --minSize <size>
: Filter files larger than the specified size. Size format B, KB, MB, GB, TB, e.g., "100KB"-S, --maxSize <size>
: Filter files smaller than the specified size. Size format B, KB, MB, GB, TB, e.g., "10MB".-e, --extensions <extensions>
: Filter files by specified extensions. Provide space seperated extensions , e.g., .txt .jpg .png-f, --from <date>
: Filter files modified from the specified date. Format: "YYYY-MM-DD".-t, --to <date>
: Filter files modified until the specified date. Format: "YYYY-MM-DD".-a, --auto
: Automatically remove files without preview.
Examples
- Clean duplicate file with size larger than equal to 12KB but
lesser than equal to 10MB.zaplicate clean -s 12KB -S 10MB
- Recursively clean the directory with files with extension .txt and .jpg
zaplicate clean -r -e .txt .jpg
- Clean duplicate file created after 2023-08-15
zaplicate clean -f 2023-08-15
- Clean the directory at location recursively
zaplicate clean -l "C:\Users\Desktop\source" -r
Created by Nj