Read only files

Mike Meyer mwm at mired.org
Tue Jul 19 23:33:25 EDT 2005


Pranav Bagora <pbagora at yahoo.com> writes:

> Hello,
>
> I am getting a permission Denied error when i am
> trying to make changes in some read only files in a
> directory. How do we check and change the read only
> attributes of files in python.

You want the os.stat and os.chmod functions.

    <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list