]> _ Git - cubist_util.git/commitdiff
wip #4697
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 23 Sep 2021 15:58:19 +0000 (17:58 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 23 Sep 2021 15:58:19 +0000 (17:58 +0200)
src/Zip.php

index 9158bb92da8f7982eb9a09e2a78f725303af5add..d6eb0d2b7725de8dd58f76cec4c47941103683ec 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 
 namespace Cubist\Util;
+
+use Cubist\Util\Files\Files;
+
 class Zip
 {
 
@@ -11,10 +14,7 @@ class Zip
      */
     public static function extract($zip, $dir)
     {
-
-        if (!file_exists($dir)) {
-            mkdir($dir, 0777, true);
-        }
+        Files::mkdir($dir);
 
         $cl = new CommandLine('unzip');
         $cl->cd($dir);