Skip to content

Commit

Permalink
Merge pull request #3624 from MathisRosenhauer/bugfix/hiddenlink
Browse files Browse the repository at this point in the history
stat symlink to determine access
  • Loading branch information
minrk authored May 24, 2018
2 parents 374da5a + a9ccdef commit 459b92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 459b92c

Please sign in to comment.