I'm debug printing the directory I'm trying to delete, so I'm sure it's correct. But you raise a valid point!
I also change permissions and ownership of /tmp/tile_cache. Thanks. On Thursday, 6 November 2014 10:59:35 UTC-5, Bruno Barcarol GuimarĂ£es wrote: > > > os.path.exists fails to see the directory as well. > > This is strange. Are you sure you are referencing the right directory (it > happens...)? The only other reason I can think of is your program or > apache (or > both) running with mount namepsace on /tmp. > > That said: > > > When it creates a new tile cache it changes the UID and GID to the > apache user (on Fedora) and also gives everyone access to the directory, > e.g. permissions are rwxrwxrwx. > > Remember you need write permission on the *parent* directory to remove a > file > inside it. E.g.: to remove `a/b` you need write permission on `a` > (permissions > on `b` don't matter, in this case). > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0563bf52-2493-46a2-aac9-8bf9f1ce2553%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.