Update README.rst

This commit is contained in:
Darko Poljak 2014-01-27 13:33:04 +01:00
parent 30620884c9
commit 609418975e

View file

@ -18,14 +18,14 @@ Remove duplicate files
.. code:: python .. code:: python
from sweeper import file_dups from sweeper import rm_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 iter_file_dups
for files in iter_file_dups(['images']): for files in iter_file_dups(['images']):
for fname in files: for fname in files:
print('found duplicate file with name: %s' % fname) print('found duplicate file with name: %s' % fname)