Hi I have a question about how to manipulate files by os.unlink() and shutil.move()
If I write a script like this =========================== #!/usr/bin/python os.unlink('afile.txt') =========================== there is no problem, but if I write one function in django views.py =========================== def del(request): os.unlink('/absolutepath/afile.txt') =========================== or =========================== def mov(request) shutil.move('/absolutepath/afile.txt', '/absolutepath/bfile.txt') =========================== I always get the error OSError: [Errno 13] Permission denied: afile.txt' afile.txt is created by django web call, the owner of the file is 'apache:apache' file mode is 644 (-rw-r--r--), just can't figure it out why I can use python code create file but can't delete the same file by python code, can anybody help me? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---