Skip to content

Commit a9ccdef

Browse files
stat symlink to determine access
1 parent dc73f9a commit a9ccdef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def is_file_hidden_posix(abs_path, stat_res=None):
140140
if os.path.basename(abs_path).startswith('.'):
141141
return True
142142

143-
if stat_res is None:
143+
if stat_res is None or stat.S_ISLNK(stat_res.st_mode):
144144
try:
145145
stat_res = os.stat(abs_path)
146146
except OSError as e:

0 commit comments

Comments
 (0)