Skip to main content

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.

Metadata

Release files for detecteff-python 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for detecteff-python 0.1
File Size Uploaded Provenance
detecteff_python-0.1.tar.gz 11.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for detecteff-python 0.1
File Interpreter ABI Platform
detecteff_python-0.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details

Total release size: 272.0 kB

Release files / detecteff_python-0.1.tar.gz

Download URL detecteff_python-0.1.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8e4c6236ecaabc0c19f69ef58480565f2f272c7b9a3de2f418473da5dc897b16
BLAKE2b-256 checksum
How to use checksums
dd1b20d030d055af30fb261dc608787b39dd178ec6d29efdfb9061a7c268f0d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / detecteff_python-0.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL detecteff_python-0.1-cp312-cp312-macosx_11_0_arm64.whl
Size 260.1 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
59b806425e361cb60c9a164d559ab0e561ce64bbc22a42f7c75164e1c09ded2a
BLAKE2b-256 checksum
How to use checksums
73defe42654c3ef34bc75e3cb5ededf9890a48b7bec80bc4c6ce0423e3c1ce46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Security for detecteff-python 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page