Possible bug in setting Windows file permissions? (os.chmod() not working properly?)
peter at engcorp.com
Tue Jun 17 04:14:58 CEST 2003
Gus Tabares wrote:
> os.chmod(file, 666) seems to work quite proficiently. It might
> be possible that it is converted (as that is easy to do).
Possible, but unlikely, I think. Note that o666 and d666 share
the bits 10010010, which quite possibly includes the bits necessary
to cause Windows to make a file read-write...
Are you really willing to throw parameters at a low-level OS function
which "seem" to work, or would you rather avoid, say, accidentally
clearing the archive bit, or accidentally setting the HIDDEN bit? ;-)
More information about the Python-list