Commit 13a70bcc by Taylor Otwell

Added File::mkdir.

parent 3c7a1270
...@@ -198,6 +198,18 @@ class File { ...@@ -198,6 +198,18 @@ class File {
} }
/** /**
* 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. * Move a directory from one location to another.
* *
* @param string $source * @param string $source
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment