Possible bug in setting Windows file permissions? (os.chmod() not working properly?)
Gus Tabares
gus.tabares at verizon.net
Mon Jun 16 22:26:11 EDT 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...
-----Original Message-----
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:
>
> Peter,
> 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? ;-)
-Peter
--
http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list