pep8 tunning
This commit is contained in:
parent
8cb421c6e4
commit
cf0ff95b36
1 changed files with 9 additions and 7 deletions
|
@ -15,9 +15,10 @@ Options:
|
|||
file's content [default: 4096]
|
||||
-d <hashalg>, --digest-alg=<hashalg> secure hash algorithm [default: md5]
|
||||
-a <action>, --action=<action> action on duplicate files (pprint,
|
||||
print, remove, move) [default: pprint]
|
||||
-remove removes duplicate files except
|
||||
first found
|
||||
print, remove, move)
|
||||
[default: pprint]
|
||||
-remove removes duplicate files
|
||||
except first found
|
||||
-move moves duplicate files to
|
||||
duplicates driectory, except first
|
||||
found
|
||||
|
@ -114,7 +115,8 @@ def mv_file_dups(topdirs=['./'], hashalg='md5', block_size=4096,
|
|||
shutil.move(f, dest_dir)
|
||||
|
||||
|
||||
def iter_file_dups(topdirs=['./'], rethash=False, hashalg='md5', block_size=4096):
|
||||
def iter_file_dups(topdirs=['./'], rethash=False, hashalg='md5',
|
||||
block_size=4096):
|
||||
"""Yield duplicate files when found in specified directory list.
|
||||
If rethash is True then tuple hash value and duplicate paths list is
|
||||
returned, otherwise duplicate paths list is returned.
|
||||
|
|
Loading…
Reference in a new issue