Find duplicate files and perform action.
Find a file
2014-02-08 19:11:55 +01:00
sweeper make with nested to work with 2.6 2014-02-08 19:11:55 +01:00
test cleanups and version inc 2014-02-07 08:30:48 +01:00
.gitignore add ignore entries 2014-02-07 19:21:33 +01:00
AUTHORS update authors file 2014-02-07 19:21:11 +01:00
LICENSE Initial commit 2014-01-26 22:21:28 -08:00
README.rst fix example for new iter_file_dups function 2014-02-07 13:04:37 +01:00
setup.py use __version__ from sweeper.py 2014-02-06 14:05:24 +01:00
TODO updated TODO file 2014-02-05 21:34:56 +01:00

sweeper
=======

Find duplicate files and perform action.

Usage
=====

Print duplicates

.. code:: python

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

Remove duplicate files

.. code:: python

    from sweeper import rm_file_dups
    rm_file_dups(['images'])

Perform custom action

.. code:: python

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

As script::

    python sweeper.py --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.6, Python3.3.3