Added File::mkdir.

This commit is contained in:
Taylor Otwell 2012-03-21 11:28:22 -05:00
parent 3c7a1270a7
commit 13a70bcc3a
1 changed files with 12 additions and 0 deletions

View File

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