]> _ Git - cubist_util.git/commitdiff
wip #5184 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 10:03:06 +0000 (12:03 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 10:03:06 +0000 (12:03 +0200)
src/Zip.php

index 546db448514fef3c92acc15f2ffe9f88d38ed66b..85aee80d320b846a750ec9bee6a6269e6dfda66b 100644 (file)
@@ -79,6 +79,9 @@ class Zip
         } else if (@is_dir($source)) {
             $cl->cd($source);
             $cl->setArg($compression);
+            if (file_exists($zip)) {
+                $cl->setManualArg('-FS');
+            }
             $cl->setArg('r');
             $cl->setArg(null, $zip);
             $cl->setArg(null, '*');