* broken symlinks have SHA1 None, but this still sounds buggy
This commit is contained in:
+1
-1
@@ -265,7 +265,7 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None):
|
|||||||
try:
|
try:
|
||||||
return func(f)
|
return func(f)
|
||||||
except FileError:
|
except FileError:
|
||||||
return "0"
|
return None
|
||||||
|
|
||||||
# also handle single files
|
# also handle single files
|
||||||
if os.path.isfile(top):
|
if os.path.isfile(top):
|
||||||
|
|||||||
Reference in New Issue
Block a user