Message143525
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 |
|
Date |
User |
Action |
Args |
2011-09-05 15:15:59 | rosslagerwall | set | recipients:
+ rosslagerwall, larry |
2011-09-05 15:15:59 | rosslagerwall | set | messageid: <1315235759.92.0.848881432073.issue12898@psf.upfronthosting.co.za> |
2011-09-05 15:14:59 | rosslagerwall | link | issue12898 messages |
2011-09-05 15:14:59 | rosslagerwall | create | |
|