Skip to main content

Find duplicate files by content hash

Project description

clone-detect

♻️ A simple Python CLI tool to recursively detect duplicate files based on their content hash — not filenames.

🔍 Features

  • Recursively scans directories
  • Finds duplicates based on file content, not name or size
  • CLI interface with options for dry-run and preview
  • Lets you choose which copies to keep (coming soon)

🚀 Installation

To install the package after cloning:

pip install -e .

Or once uploaded to PyPI:

pip install clone-detect

usage:

clone-detect <directory> [--dry-run]

example: 

clone-detect ./my_folder --dry-run

sample output:

clone-detect ./test_dupes --dry-run

Scanning ./test_dupes...

Duplicate group (hash=bbb2f10dc8c1b0e2cc367816797afd48fdc3777d6265cb6b8504169a80ddeedf):
  [1] ./test_dupes/whitecat.mp4 (keep)
  [2] ./test_dupes/catnew.mp4

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

clone_detect-0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clone_detect-0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clone_detect-0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for clone_detect-0.1.tar.gz
Algorithm Hash digest
SHA256 28123a66ea05df11c370e1e4cdeea3ec1c79f485579eaa63db347017c9fc256e
MD5 3bf176ecbbce50d8718264c801722fb9
BLAKE2b-256 b254c8b1ac8cf931bfe47bd9862f25bb587391af81c0ebdc78f61fab77b2d597

See more details on using hashes here.

File details

Details for the file clone_detect-0.1-py3-none-any.whl.

File metadata

  • Download URL: clone_detect-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for clone_detect-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 536a362bcf17c0e2ad2ff8745f48d6a76cbe779b6d474f875aa3f5911052176a
MD5 363a85e128c3a38a7b1403ceb178290c
BLAKE2b-256 de919f8989d64e76ec77130da5bbbc14271314e36a1530f224a4501c95eda9dd

See more details on using hashes here.

Supported by

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