os.remove() permission problem
Aahz
aahz at pythoncraft.com
Sat Dec 5 13:09:45 EST 2009
In article <mailman.1254.1259673141.2873.python-list at python.org>,
Christian Heimes <lists at cheimes.de> wrote:
>
>You have to set the write and execute permssion on *directory*, not on
>the file. unlink (aka remove) requires write permission on the directory
>in order to remove the file.
>
>It's like in the real world. You may be allowed to modify a document (w
>permission on the file) but you may not be allowed to remove it from its
>cabinet (w permission on the directory).
Note that this applies to Unix/Mac; on Windows, you can't delete
read-only files.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
The best way to get information on Usenet is not to ask a question, but
to post the wrong information.
More information about the Python-list
mailing list