stat symlink to determine access

pull/3624/head
Mathis Rosenhauer 8 years ago
parent dc73f9a9be
commit a9ccdef489

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