[Pythonmac-SIG] OS X Python mkdir()

Doug Landauer landauer@got.net
Thu, 18 Apr 2002 10:54:12 -0700


At 7:49 PM +0200 4/18/02, Just van Rossum wrote:
>I can't reproduce what you say in the comment ("mod completely ignored"), but
>something is ignored indeed:
>
> - os.mkdir(path, 0777) results in  drwxr-xr-x

Did you check your umask?   A umask of 022 would correctly
result in this behavior.
    -- Doug


> - os.mkdir(path, 0) results in     d---------
> - os.chmod(path, 0777) results in  drwxrwxrwx