stat/fsutils_ext/windows: Handle invalid/non-junctions

This commit is contained in:
Oleksii Shevchuk 2018-11-07 22:57:00 +02:00
parent 6efcf1d32c
commit 07f8589369
1 changed files with 1 additions and 1 deletions

View File

@ -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)