This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rosslagerwall
Recipients larry, rosslagerwall
Date 2011-09-05.15:14:59
SpamBayes Score 0.017806754
Marked as misclassified No
Message-id <1315235759.92.0.848881432073.issue12898@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-09-05 15:15:59rosslagerwallsetrecipients: + rosslagerwall, larry
2011-09-05 15:15:59rosslagerwallsetmessageid: <1315235759.92.0.848881432073.issue12898@psf.upfronthosting.co.za>
2011-09-05 15:14:59rosslagerwalllinkissue12898 messages
2011-09-05 15:14:59rosslagerwallcreate