Message115846
Windows provides two versions of mkdir in direct.h:
int mkdir(const char* dirname)
int _mkdir(const char* dirname)
The latter is the preferred function because it is conformant to the ISO C++ standard. As you can see, neither function has a mode parameter like the Unix system call. The directory permissions are inherited from the parent directory.
I simply defined a macro that expands to the correct version of mkdir for the system that Python is being compiled upon. I found other instances in the Python source where similar things were done so I hope my solution is acceptable.
I have tested my solution on 32 and 64 bit builds of Python from the py3k svn trunk. |
|
Date |
User |
Action |
Args |
2010-09-08 04:37:08 | janglin | set | recipients:
+ janglin, stutzbach |
2010-09-08 04:37:07 | janglin | set | messageid: <1283920627.71.0.918487964932.issue9752@psf.upfronthosting.co.za> |
2010-09-08 04:37:04 | janglin | link | issue9752 messages |
2010-09-08 04:37:03 | janglin | create | |
|