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 file_dups
rm_file_dups(['images'])
Perform custom action
from sweeper import file_dups
for files in iter_file_dups(['images']):
for fname in files:
print('found duplicate file with name: %s' % fname)
As script:
python sweeper.py --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.1.0.tar.gz
(3.4 kB
view details)
File details
Details for the file sweeper-0.1.0.tar.gz
.
File metadata
- Download URL: sweeper-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fc125b48fb42e75116d8caf0afc5ac5f4475b2025f2782648f2b9fc977c7602 |
|
MD5 | 0fd2b6e5a4f03b840d3bfcf50ef7d048 |
|
BLAKE2b-256 | 45abb615eeb558e8f2a9bc9358ece62e0d447453138f742b225f8da88641154a |