Skip to main content

Analyse all files in a directory and manage duplicate files (the same file present with different names)

Project description

Introduction

This application help you cleaning your filesystem from duplicate files. The duplicate meaning here is: the same file is present with different names.

You can use it in this way:

Usage: pydirduplicatefinder.py [options] [directory]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -a ACTION, --action=ACTION
                        Choose an action to do when a duplicate is found.
                        Valid options are print,rename,move; print is the
                        default.
  -r, --recursive       Also check files in subdirectories recursively.
  -p PREFIX, --prefix=PREFIX
                        Prefix used for renaming duplicated files when the
                        'rename' action is chosen.
  -m PATH, --move-path=PATH
                        The directory where duplicate will be moved when the
                        'move' action is chosen.
  -s MIN_SIZE, --min-size=MIN_SIZE
                        Indicate the min size in byte of a file to be checked.
                        Default is 10. Empty file are always ignored.

TODO

  • Work on more that a folder.
  • A way to specify filters, to skip files or directory.

Credits

  • Thanks to Lord Epzylon for sending me some code and modifications.

Subversion and other

The SVN repository is hosted at the Keul’s Python Libraries

Changelog

0.2.0

  • Added the ‘move’ action.
  • Added the –recursive option, to walk an entire tree of folders (thanks to Lord Epzylon).
  • Added the –min-size option, to specify a minimum size of the files to be checked.

0.1.2

  • Bad bug in the setup.py. Code was ok but the 0.1.1 egg was not installable. Thanks to the everywhere present A. Jung.

0.1.1

  • Fix to the setup.py script.
  • Added doc infos.
  • First egg official release.

0.1.0 - Unreleased

  • First release

Project details


Download files

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

Files for PyDirDuplicateFinder, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size PyDirDuplicateFinder-0.2.0-py2.5.egg (9.2 kB) File type Egg Python version 2.5 Upload date Hashes View
Filename, size PyDirDuplicateFinder-0.2.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page