also check R_OK for hidden directories

This commit is contained in:
Min RK 2016-01-27 16:05:34 +01:00
parent 716708e207
commit 435496d290

View File

@ -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