Serhiy Storchaka added the comment: What if add a slash at the end of the path? os.listdir(os.open('/tmp/test/', os.O_RDONLY)) ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue23346> _______________________________________