Minor fixes.

This commit is contained in:
darko-poljak 2014-01-27 08:04:25 +01:00
parent e98c7983bc
commit e1c31080b5
1 changed files with 4 additions and 8 deletions

View File

@ -6,11 +6,8 @@ Find duplicate files and perform action.
Usage Usage
===== =====
As module
---------
Print duplicates Print duplicates
^^^^^^^^^^^^^^^^
.. code:: python .. code:: python
from sweeper import file_dups from sweeper import file_dups
@ -18,14 +15,14 @@ Print duplicates
print(dups) print(dups)
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
@ -33,8 +30,7 @@ Perform custom action
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