diff options
-rw-r--r-- | lib/private/installer.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php index a497f581a5d..7ba4144a4aa 100644 --- a/lib/private/installer.php +++ b/lib/private/installer.php @@ -92,6 +92,7 @@ class OC_Installer{ $extractDir .= '/' . $info['id']; if(!file_exists($extractDir)) { + OC_Helper::rmdirr($basedir); throw new \Exception($l->t("Archive does not contain a directory named %s", $info['id'])); } OC_Helper::copyr($extractDir, $basedir); |