Commit 13a70bcc authored by Taylor Otwell's avatar Taylor Otwell

Added File::mkdir.

parent 3c7a1270
......@@ -197,6 +197,18 @@ class File {
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.
*
......
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