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 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:
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.4.0.tar.gz
(4.6 kB
view details)
File details
Details for the file sweeper-0.4.0.tar.gz
.
File metadata
- Download URL: sweeper-0.4.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29b97fc6f1a432653061140e1d636f418752531a1e103dbafa7b36a7b5f131de |
|
MD5 | f8a70a4b1bb2230a80d99657c2215ff6 |
|
BLAKE2b-256 | dcdfd44afc4b38ab871481aa17ab0c8cfb8c375e5b7533fe5ec58b6eabf3fedc |