Find duplicate files and perform action.
Project description
sweeper
Find duplicate files and perform action.
Usage
Print duplicates
from sweeper import Sweeper
swp = Sweeper(['images1', 'images2'])
dups = swp.file_dups()
print(dups)
Remove duplicate files
from sweeper import Sweeper
swp = Sweeper(['images1', 'images2'])
swp.rm()
Perform custom action
from sweeper import Sweeper
swp = Sweeper(['images'])
for f, h, dups in swp:
print('encountered {} which duplicates with already found duplicate files {} with hash {}'.format(f, dups, h))
As script:
python -m sweeper/sweeper --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, Python3
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.9.0.tar.gz
(6.3 kB
view details)
File details
Details for the file sweeper-0.9.0.tar.gz
.
File metadata
- Download URL: sweeper-0.9.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21b7de2309e901bc6bb785f5d3cf62c0f51f5b54eaacb0ea5e2fd923420c6df2 |
|
MD5 | e58b8574d86d16850ccc442f85a56040 |
|
BLAKE2b-256 | 17f0705c6957d0961ef7f5a1ae098f639da6f5af29088f3435b73c83e26d52db |