Added File::mkdir.
This commit is contained in:
parent
3c7a1270a7
commit
13a70bcc3a
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue