Possible bug in setting Windows file permissions? (os.chmod() not working properly?)

Gus Tabares gus.tabares at verizon.net
Mon Jun 16 20:34:55 EDT 2003


Peter,

	os.chmod(file, 666) seems to work quite proficiently. It might be possible
that it is converted (as that is easy to do).


Gus

-----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 8:28 PM
To: python-list at python.org
Subject: Re: Possible bug in setting Windows file permissions?
(os.chmod() not working properly?)


Gus Tabares wrote:
>
> OK I lied. It's 666:)

In any case, aren't these supposed to be meaningful only as octal
values?  So you'd need 0666?  I'm not actually going by the docs
here, just memory.  777 and 666 would be extremely weird parameters
to pass in otherwise (i.e. as decimal).

-Peter
--
http://mail.python.org/mailman/listinfo/python-list






More information about the Python-list mailing list