From: Jonas Häggqvist Date: Wed, 18 Mar 2009 01:35:51 +0000 (+0100) Subject: Give ourselves write permission to dirs we want to delete the contents of. X-Git-Url: https://repo.or.cz/w/rockboxthemes.git/commitdiff_plain/6cd8109fa03e0d82803491e965096e325e48312c Give ourselves write permission to dirs we want to delete the contents of. --- diff --git a/private/themesite.class.php b/private/themesite.class.php index d2319f4..7628ce2 100644 --- a/private/themesite.class.php +++ b/private/themesite.class.php @@ -506,6 +506,7 @@ END; if ($entry == '.' || $entry == '..') continue; $path = sprintf("%s/%s", $dir->path, $entry); if (is_dir($path)) { + chmod($path, 0700); // To make sure we're allowed to delete files $this->rmdir_recursive($path); } else {