Possible bug in setting Windows file permissions? (os.chmod() not working properly?)
tim.one at comcast.net
Tue Jun 17 02:13:28 CEST 2003
> Bloody hell, you're right! I didn't think that UNIX file
> permission descriptions would work in Windows, but they do.
Sometimes they do, and provided you stick to things that also make sense on
Windows (e.g., the "execute" bit doesn't mean beans on Windows, or, in the
other direction, the Windows "hidden" bit has no spelling via chmod).
> Can someone make this clearer in the documentation?
You're elected <0.5 wink>. Start by doing a google search on
The top hit will take you to MS's docs for MS's implementation of chmod
(which Python calls).
> It's interesting to note that '666' maps into '33206' in the
> Windows file permission description. So you can (apparently), use
> both values to make a file readable & writeable.
One of many undocumented mysteries. This one isn't too surprising:
More information about the Python-list