mirror of https://github.com/CIRCL/PyCIRCLean
Fix log for symlinks to files that don't exist
parent
5ca1f70fe2
commit
058a446d78
|
@ -490,6 +490,8 @@ class GroomerLogger(object):
|
||||||
file_hash = Logging.computehash(file_path)[:6]
|
file_hash = Logging.computehash(file_path)[:6]
|
||||||
except IsADirectoryError:
|
except IsADirectoryError:
|
||||||
file_hash = 'directory'
|
file_hash = 'directory'
|
||||||
|
except FileNotFoundError:
|
||||||
|
file_hash = '------'
|
||||||
if file_props['is_symlink']:
|
if file_props['is_symlink']:
|
||||||
symlink_template = "+- NOT COPIED: symbolic link to {name} ({sha_hash})"
|
symlink_template = "+- NOT COPIED: symbolic link to {name} ({sha_hash})"
|
||||||
log_string = symlink_template.format(
|
log_string = symlink_template.format(
|
||||||
|
|
Loading…
Reference in New Issue