By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,994 Members | 1,166 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,994 IT Pros & Developers. It's quick & easy.

Re: How to remove read-only from a file

P: n/a
Robert Dailey wrote:

Using Python 3.0, how can I remove a read-only property from a file in
Windows XP? Thanks.
import os
import stat

os.chmod ("c:/temp/temp.txt", stat.S_IWRITE)

(Haven't actually checked that on Python 3.0 but I don't believe
it's changed...)

Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.