Ronald Oussoren added the comment:
os.access is a think wrapper around C APIs (access(2), faccessat(2)).
I don't think this is a bug in Python, a shell command like "test -r /opt/xray"
will almost certainly give the same result.
--
nosy: +ronaldoussoren
_
New submission from Michael Pelletier :
This emerged during a fault in a fileserver mounted on a Linux machine via a
Samba client mount. The access to the mountpoint was being blocked by the
fileserver, but os.access() wasn't able to recognize it as unreadable:
>>> os.access('/opt/xray', os.R