Some fixes.
This commit is contained in:
parent
c5fdf029e2
commit
a30cd37814
1 changed files with 4 additions and 2 deletions
|
@ -11,25 +11,27 @@ As module
|
||||||
|
|
||||||
Print duplicates
|
Print duplicates
|
||||||
^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^
|
||||||
|
.. code:: python
|
||||||
from sweeper import file_dups
|
from sweeper import file_dups
|
||||||
dups = file_dups(['images1', 'images2'])
|
dups = file_dups(['images1', 'images2'])
|
||||||
print(dups)
|
print(dups)
|
||||||
|
|
||||||
Remove duplicate files
|
Remove duplicate files
|
||||||
^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
.. code:: python
|
||||||
from sweeper import file_dups
|
from sweeper import file_dups
|
||||||
rm_file_dups(['images'])
|
rm_file_dups(['images'])
|
||||||
|
|
||||||
Perform custom action
|
Perform custom action
|
||||||
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
.. code:: python
|
||||||
from sweeper import file_dups
|
from sweeper import file_dups
|
||||||
for files in do_with_file_dups(['images']):
|
for files in do_with_file_dups(['images']):
|
||||||
for fname in files:
|
for fname in files:
|
||||||
print('found duplicte file with name: %s' % fname)
|
print('found duplicte file with name: %s' % fname)
|
||||||
|
|
||||||
As script
|
As script
|
||||||
---------
|
---------
|
||||||
|
|
||||||
python sweeper.py --help
|
python sweeper.py --help
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
|
|
Loading…
Reference in a new issue