From: Vincent Vanwaelscappel Date: Wed, 8 Sep 2021 14:32:10 +0000 (+0200) Subject: wip #4666 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=09eb55f42a72d0f5613eb1428f03536adac7486b;p=cubist_util.git wip #4666 @0.25 --- diff --git a/src/Files/Files.php b/src/Files/Files.php index 420aeec..406eb65 100644 --- a/src/Files/Files.php +++ b/src/Files/Files.php @@ -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);