fix packing bug with zip

This commit is contained in:
Dennis Eichhorn 2020-10-08 17:32:30 +02:00
parent 74ed9b9ef7
commit 9fe5c84b47

View File

@ -35,7 +35,9 @@ class Zip implements ArchiveInterface
{ {
$destination = FileUtils::absolute(\str_replace('\\', '/', $destination)); $destination = FileUtils::absolute(\str_replace('\\', '/', $destination));
if (!$overwrite && \is_file($destination)) { if (!$overwrite && \is_file($destination)
|| \is_dir($destination)
) {
return false; return false;
} }