This method is similar to the PHP mkdir() function except that
it uses chmod() to set the permission of the created directory
in order to avoid the impact of the umask setting.
public static createDirectory ( string $path, integer $mode = 509, boolean $recursive = true ) : boolean | ||
$path | string | path of the directory to be created. |
$mode | integer | the permission to be set for the created directory. |
$recursive | boolean | whether to create parent directories if they do not exist. |
return | boolean | whether the directory is created successfully |