Skip to main content

A command-line program written in Python for detecting and removing duplicate files

Project description

dupeutil

A command-line program written in Python for detecting and removing duplicate files

Table of contents

Installation

To install dupeutil, enter the following command in your terminal:

python -m pip install dupeutil

Usage

dupeutil is designed to be as effortless and as easy as possible to use. You can check for duplicate files in a directory by cd-ing into that directory and by simply entering the following command in your terminal:

dupeutil

That's it. The program will then check for duplicate files in the current working directory and provide you with a prompt that shows which duplicates were found and ask if you would like to remove them.

Alternatively, if you would like to check a particular directory without it being the current working directory, you can explicitly pass it a directory:

dupeutil <path to dir>
📝 NOTE: You may need to wrap the directory in quotes:

dupeutil "C:\Users\user\Downloads\folder"

Arguments

These are the available command-line arguments that you can pass to dupeutil. You can enter dupeutil -h or dupeutil --help in your terminal to view them as well.

positional arguments:
  dir                           the directory to check

options:
  -h, --help                    show this help message and exit
  -f FILES [FILES ...],         the files to compare
  --files FILES [FILES ...]

  -q, --quiet                   suppress output to the console; this option will not ask for
                                permission to  remove files
  -r, --recursive               include files in subdirectories
  -v, --version                 print program version

Files flag

If you'd rather compare files instead of a directory, you can do so by using the -f or --files flag:

dupeutil -f <path to file1> <path to file2> <path to file3> ... <path to fileN>

If any of the paths contain a space, it's recommended that you wrap them in quotes.

Quiet flag

If you don't want to see any output in the console, you can pass the -q or --quiet flag when you run dupeutil:

dupeutil <path to dir> -q

If you include the quiet flag, the program will not provide you with an overview of duplicate files, nor will it ask you for permission to remove those files.

Recursive flag

If you would like to include subdirectories in the given directory, pass the -r or --recursive flag:

dupeutil <path to dir> -r

Including this flag will cause files in the top-level directory and files in any subdirectories to be compared as well.

Project details


Download files

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

Source Distribution

dupeutil-1.0.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

dupeutil-1.0.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file dupeutil-1.0.0.tar.gz.

File metadata

  • Download URL: dupeutil-1.0.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.0

File hashes

Hashes for dupeutil-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5cabae478c0f05b8931a8a6f818803306ced247f99dd79b4ba6dbbd5d44a87e8
MD5 10a4676f5810625208c07446187b3856
BLAKE2b-256 9eb5650c62218959bf94abb4bf601b948398dcddf03788d323a52d15be30dd64

See more details on using hashes here.

File details

Details for the file dupeutil-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dupeutil-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.0

File hashes

Hashes for dupeutil-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99fd1f823e89966d50ff2e0fe0c80bd2b8a6a61bf612c636b776a565b663318e
MD5 0d9c12116b1ac6a6a9f1c105bc5b42f0
BLAKE2b-256 987da5eacfa6dc0ae80a6f9e58b63413dfc406363b8a8e4c3bc01c29708f1908

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