Hi,

On Wed, Aug 08, 2007 at 12:08:17PM -0700, Enoch wrote:
> I have a question about how to manipulate files by os.unlink() and
> shutil.move()

[...]

> I always get the error
> OSError: [Errno 13] Permission denied: afile.txt'

To move or unlink a file, the user your code is running as needs to have write
permissions for the directory containing the file.  Permissions on the file
itself are inconsequential.

-Forest
-- 
Forest Bond
http://www.alittletooquiet.net

Attachment: signature.asc
Description: Digital signature

Reply via email to