exclude_prefix is a list. And code should check for all items in it, not just one and return...
Fixes: #514
This commit is contained in:
@@ -247,8 +247,6 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None):
|
|||||||
for p in exclude_prefix:
|
for p in exclude_prefix:
|
||||||
if tempfnam.startswith(p):
|
if tempfnam.startswith(p):
|
||||||
return 1
|
return 1
|
||||||
else:
|
|
||||||
return 0
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
for root, dirs, files in os.walk(top, topdown=False):
|
for root, dirs, files in os.walk(top, topdown=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user