Added File::mkdir.
This commit is contained in:
@@ -197,6 +197,18 @@ class File {
|
|||||||
return false;
|
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.
|
* Move a directory from one location to another.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user