diff --git a/lib/private/Archive/ZIP.php b/lib/private/Archive/ZIP.php index 96894bac6e..2840bac70e 100644 --- a/lib/private/Archive/ZIP.php +++ b/lib/private/Archive/ZIP.php @@ -48,7 +48,7 @@ class ZIP extends Archive { public function __construct($source) { $this->path = $source; $this->zip = new \ZipArchive(); - if ($this->zip->open($source, \ZipArchive::CREATE)) { + if ($this->zip->open($source, \ZipArchive::OVERWRITE)) { } else { \OCP\Util::writeLog('files_archive', 'Error while opening archive '.$source, ILogger::WARN); }