Skip to main content

Find duplicate files and perform action.

Project description

sweeper

Find duplicate files and perform action.

Usage

Print duplicates

from sweeper import Sweeper
swp = Sweeper(['images1', 'images2'])
dups = swp.file_dups()
print(dups)

Remove duplicate files

from sweeper import Sweeper
swp = Sweeper(['images1', 'images2'])
swp.rm()

Perform custom action

from sweeper import Sweeper
swp = Sweeper(['images'])
for f, h, dups in swp:
    print('encountered {} which duplicates with already found duplicate files {} with hash {}'.format(f, dups, h))

As script:

python -m sweeper/sweeper --help

As installed console script:

sweeper --help

Installation

from source:

python setup.py install

or from PyPI:

pip install sweeper

Documentation

this README.rst, code itself, docstrings

sweeper can be found on github.com at:

https://github.com/darko-poljak/sweeper

Tested With

Python2.7, Python3

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 sweeper, version 0.9.0
Filename, size & hash File type Python version Upload date
sweeper-0.9.0.tar.gz (6.3 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page