From 9fe5c84b478421d5126762d6b20273700b858100 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 8 Oct 2020 17:32:30 +0200 Subject: [PATCH] fix packing bug with zip --- Utils/IO/Zip/Zip.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Utils/IO/Zip/Zip.php b/Utils/IO/Zip/Zip.php index 159c0e753..eba06bf01 100644 --- a/Utils/IO/Zip/Zip.php +++ b/Utils/IO/Zip/Zip.php @@ -35,7 +35,9 @@ class Zip implements ArchiveInterface { $destination = FileUtils::absolute(\str_replace('\\', '/', $destination)); - if (!$overwrite && \is_file($destination)) { + if (!$overwrite && \is_file($destination) + || \is_dir($destination) + ) { return false; }