Find duplicate files and perform action.
Project description
sweeper
Find duplicate files and perform action.
Usage
Print duplicates
from sweeper import file_dups
dups = file_dups(['images1', 'images2'])
print(dups)
Remove duplicate files
from sweeper import rm_file_dups
rm_file_dups(['images'])
Perform custom action
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:
Tested With
Python2.7.6, Python3.3.3
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
sweeper-0.5.0.tar.gz
(6.3 kB
view hashes)