Ross Lagerwall <rosslagerw...@gmail.com> added the comment: opendir opens a C dirent structure with an underlying file descriptor.
However, to open a directory file descriptor, simple use: os.open("/tmp", os.O_RDONLY) This can then be used as the fd to the functions which require a directory fd like os.openat() Cheers Ross ---------- nosy: +rosslagerwall _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12898> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com