Minor fixes.

This commit is contained in:
darko-poljak 2014-01-27 08:03:00 +01:00
parent a30cd37814
commit e98c7983bc

View file

@ -12,6 +12,7 @@ As module
Print duplicates Print duplicates
^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
.. code:: python .. 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)
@ -19,12 +20,14 @@ Print duplicates
Remove duplicate files Remove duplicate files
^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
.. code:: python .. 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 .. 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:
@ -32,6 +35,7 @@ Perform custom action
As script As script
--------- ---------
python sweeper.py --help python sweeper.py --help
Installation Installation