remove read only flag

Cliff Wells logiplexsoftware at earthlink.net
Tue Apr 30 13:40:25 EDT 2002


On Tue, 30 Apr 2002 10:33:20 -0700
Cliff Wells wrote:

> On Tue, 30 Apr 2002 17:18:47 GMT
> Francis Meyvis wrote:
> 
> > Hoi,
> > 
> > How can one remove the read-only flag from a file
> > (e.g. c:\temp\file.txt) using python in win32.
> 
> see os.chmod()
> 
> Hm.  I wonder how this maps to Windows permissions...

Well, it seems that os.chmod(filename, 666) works as expected (AFAICT).

-- 
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308  (800) 735-0555 x308





More information about the Python-list mailing list