How to get a directory file descriptor?
alex23
wuwei23 at gmail.com
Wed Nov 26 00:36:00 EST 2008
On Nov 26, 3:26 pm, greg <g... at cosc.canterbury.ac.nz> wrote:
> os.O_DIRECTORY must be fairly new -- it doesn't exist
> in my 2.5 installation. But os.O_RDONLY seems to work
> just as well for this purpose.
Which OS are you using?
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> hasattr(os, 'O_DIRECTORY')
True
I'm pretty certain it was present under Windows XP as well.
More information about the Python-list
mailing list