On Nov 25, 9:53 pm, alex23 <[EMAIL PROTECTED]> wrote: > On Nov 25, 5:05 pm, Cong Ma <[EMAIL PROTECTED]> wrote: > > > Can you give me some hint on getting a directory file descriptor in Python? > > Besides, what's good about os.fchdir() if I can't get a directory fd in the > > first place? > > Try: os.open('<dirname>', os.O_RDONLY) > > Check os for a list of the valid flag types.
Sorry, that should probably be os.O_DIRECTORY. -- http://mail.python.org/mailman/listinfo/python-list