mirror of https://github.com/n1nj4sec/pupy.git
stat/fsutils_ext/windows: Handle invalid/non-junctions
This commit is contained in:
parent
6efcf1d32c
commit
07f8589369
|
@ -25,7 +25,7 @@ def getfilesec(filepath):
|
|||
try:
|
||||
if islink(filepath):
|
||||
link = readlink(filepath)
|
||||
except (WindowsError, OSError, IOError):
|
||||
except (WindowsError, ValueError, OSError, IOError):
|
||||
pass
|
||||
|
||||
mode = mode_to_letter(filestat.st_mode)
|
||||
|
|
Loading…
Reference in New Issue