Find duplicate files and perform action.
Find a file
2014-02-05 11:33:09 -06:00
sweeper import py3k print function from __future to maintain compat 2014-02-05 11:33:09 -06:00
test lots of improvements 2014-01-29 21:10:30 +01:00
.gitignore Moved to README.rst. 2014-01-27 07:50:38 +01:00
LICENSE Initial commit 2014-01-26 22:21:28 -08:00
README.rst synchronization 2014-01-28 22:39:07 +01:00
setup.py switch to v0.4.1 2014-01-29 21:14:15 +01:00
TODO done with current TODO list 2014-01-31 22:45:54 +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 files in iter_file_dups(['images']):
        for fname in files:
            print('found duplicate file with name: {}'.format(fname))

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