diff --git a/src/helpers.php b/src/helpers.php index 55210721..50426d83 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -105,7 +105,9 @@ function mkdir_recursively($path) array_walk($explodedPath, function ($dir) use (&$currentPath) { if ($currentPath != '/') { - $currentPath .= '/' . $dir; + str_contains(php_uname(), 'Windows') + ? $currentPath .= '/' + : $currentPath .= '/' . $dir; } else { $currentPath .= $dir; }