mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
stat symlink to determine access
This commit is contained in:
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…
Reference in New Issue
Block a user