parent
259e75568c
commit
f60e7d3f55
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue