mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
also check R_OK for hidden directories
This commit is contained in:
parent
716708e207
commit
435496d290
@ -112,7 +112,7 @@ def is_hidden(abs_path, abs_root=''):
|
||||
return True
|
||||
else:
|
||||
# use x-access, not actual listing, in case of slow/large listings
|
||||
if not os.access(abs_path, os.X_OK):
|
||||
if not os.access(abs_path, os.X_OK | os.R_OK):
|
||||
return True
|
||||
|
||||
# check UF_HIDDEN on any location up to root
|
||||
|
Loading…
Reference in New Issue
Block a user