Possible bug in setting Windows file permissions? (os.chmod() not working properly?)
gus.tabares at verizon.net
Tue Jun 17 04:26:11 CEST 2003
Yeah I guess I see your point. I have and do use 666 quite often. I guess
adding a 0 wouldn't really hurt...
From: python-list-admin at python.org
[mailto:python-list-admin at python.org]On Behalf Of Peter Hansen
Sent: Monday, June 16, 2003 10:15 PM
To: python-list at python.org
Subject: Re: Possible bug in setting Windows file permissions?
(os.chmod() not working properly?)
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