added rethash parameter to iter_file_dups
This commit is contained in:
parent
a60ede31fb
commit
4b8a7d51be
1 changed files with 2 additions and 2 deletions
|
@ -109,9 +109,9 @@ def iter_file_dups(topdirs=['./'], rethash=False, hashalg='md5', block_size=4096
|
||||||
returned, otherwise duplicate paths list is returned.
|
returned, otherwise duplicate paths list is returned.
|
||||||
"""
|
"""
|
||||||
dups = file_dups(topdirs, hashalg, block_size)
|
dups = file_dups(topdirs, hashalg, block_size)
|
||||||
for hash, fpaths in _dict_iter_items:
|
for hash_, fpaths in _dict_iter_items(dups):
|
||||||
if rethash:
|
if rethash:
|
||||||
yield (hash, fpaths)
|
yield (hash_, fpaths)
|
||||||
else:
|
else:
|
||||||
yield fpaths
|
yield fpaths
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue