]> _ Git - cubist_util.git/commitdiff
wip #4666 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 8 Sep 2021 14:32:10 +0000 (16:32 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 8 Sep 2021 14:32:10 +0000 (16:32 +0200)
src/Files/Files.php

index 420aeeca27908c1982959acc6e6be5b9ff427b11..406eb654f4527b82c8f3943c6776eb95122d12fe 100644 (file)
@@ -22,6 +22,14 @@ class Files
         }
     }
 
+    public static function mkdir($path, $mode = 0777, $recursive = true)
+    {
+        if (file_exists($path)) {
+            return;
+        }
+        mkdir($path, $mode, $recursive);
+    }
+
     public static function humanReadableSize($size, $precision = 2)
     {
         $base = log($size) / log(1024);