Changing File Permissions

Justin Johnson justinjohnson at fastmail.fm
Fri Jun 13 13:48:56 EDT 2003


Hi,

I'm trying to remove a file on a win2k box, but the readonly bit is set,
so I get an exception trying to os.remove it.  I'd prefer if I didn't
have to run an attrib -r command, and write something a little more
platform independent.  Is there some sort of chmod method that would
handle this?

Any help is appreciated.
Thanks.
-Justin





More information about the Python-list mailing list