Skip to main content

Find and delete duplicate files!

Project description

Overview

Detecteff was originally written in rust but now has python bindings.

This was created for a Freelancing Job and is a command-line utility to find duplicate files in a directory and delete them.

Table of Contents

Features

  • Optional Recursive scan
  • Default output and a formatted output choice
  • Thorough
  • super fast (rust backend)
  • Ability to ignore directories
  • Auto-ignore Directories whose name starts with . as they are not to be messed with

NOTE: If scanning the HOME directory of your OS, be careful as some directories shouldn't be messed with like the Library and Applications folder in macOS. Try scanning individual directories in the home directory.

ADDITIONAL NOTE:

  • Avoid scanning OS directories or any application installation directory or else it might result in tampering with important files.
  • Before using --delete or -d flag to delete the temp files, check the list of files that will be deleted (white background, red foreground) that will be printed after scanning.

For Full Documentation on Errors and Bug Fixes, refere here.

Installation

Run the following code in Terminal

pip install detecteff-python

Usage

The Installation will build a bin called detectf. Run help to see full help

$ detectf --help
detecteff help
   -
   [INFO]
   | -h, --help : show help text and exit.
   | -v, --version : show version and exit.
   -
   [FLAG]
   | -r, --recursive : recursive mode. Default -> OFF
   | -fmt, --formatted : show formatted output. Default -> OFF
   -
   [INPUT]
   | -s, --scan <directory> : scan the directory for duplicate files. (Mandatory)
   | -i, --ignore <directory1>, <directory2>, ... : ignore these directories. (Optional)
   -
   [IRREVERSIBLE FLAG]
   | -del, --delete : delete any found duplicates. Default -> OFF

Cases

scanning a specific directory

Normal

detectf --scan <directory>

Recursive

detectf --scan <directory> --recursive

Better Formatting

detectf --scan <directory> --formatted

Ignoring directories

detectf --scan <directory> --ignore <dir1> <dir2> ...

Deleting Duplicates on the go

This is irreversible command!

detectf --scan <directory> --ignore <dir1> <dir2> --delete

Caution

  • Try to avoid scanning directories that contain system files like the Applications or Library directory in macos.

  • Try to avoid scanning directories that contain source code binaries.

  • Try to avoid scanning the HOME directory of your OS as it may contain several of those directories mentioned in point 1 and 2. If important, then scan it individual directories at a time or add the trouble making directories in the ignore argument.

  • Try not to scan entire Filesystem, This is not made for that.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

detecteff_python-0.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

detecteff_python-0.1-cp312-cp312-macosx_11_0_arm64.whl (260.1 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

File details

Details for the file detecteff_python-0.1.tar.gz.

File metadata

  • Download URL: detecteff_python-0.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for detecteff_python-0.1.tar.gz
Algorithm Hash digest
SHA256 8e4c6236ecaabc0c19f69ef58480565f2f272c7b9a3de2f418473da5dc897b16
MD5 dec5f6a8e790072dabf9d514ef299a1a
BLAKE2b-256 dd1b20d030d055af30fb261dc608787b39dd178ec6d29efdfb9061a7c268f0d6

See more details on using hashes here.

File details

Details for the file detecteff_python-0.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for detecteff_python-0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59b806425e361cb60c9a164d559ab0e561ce64bbc22a42f7c75164e1c09ded2a
MD5 8845200e9c17190ae4e6ed544826f532
BLAKE2b-256 73defe42654c3ef34bc75e3cb5ededf9890a48b7bec80bc4c6ce0423e3c1ce46

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page