Added File::mkdir.

This commit is contained in:
Taylor Otwell
2012-03-21 11:28:22 -05:00
parent 3c7a1270a7
commit 13a70bcc3a

View File

@@ -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.
*