Skip to content

Commit 459b92c

Browse files
authored
Merge pull request #3624 from MathisRosenhauer/bugfix/hiddenlink
stat symlink to determine access
2 parents 374da5a + a9ccdef commit 459b92c

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)