diff --git a/laravel/file.php b/laravel/file.php index ca08a9c5..0346c83c 100644 --- a/laravel/file.php +++ b/laravel/file.php @@ -197,6 +197,18 @@ public static function is($extensions, $path) return false; } + /** + * Create a new directory. + * + * @param string $path + * @param int $chmod + * @return void + */ + public static function mkdir($path, $chmod = 0777) + { + return ( ! is_dir($path)) ? mkdir($path, $chmod, true) : true; + } + /** * Move a directory from one location to another. *