Merge pull request #3624 from MathisRosenhauer/bugfix/hiddenlink

stat symlink to determine access
pull/3636/head
Min RK 8 years ago committed by GitHub
commit 459b92cd23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -140,7 +140,7 @@ def is_file_hidden_posix(abs_path, stat_res=None):
if os.path.basename(abs_path).startswith('.'):
return True
if stat_res is None:
if stat_res is None or stat.S_ISLNK(stat_res.st_mode):
try:
stat_res = os.stat(abs_path)
except OSError as e:

Loading…
Cancel
Save