src/Helpers/Request/FileHelper.php
public function createDirectory($path, $mode = 0775, $recursive = true)
    {
        return $this->proxy(__FUNCTION__, [$path, $mode, $recursive]);
    }
public function createDirectory($path, $mode = 0775, $recursive = true)
    {
        return $this->proxy(__FUNCTION__, [$path, $mode, $recursive]);
    }
Creates a new directory.

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.

@param string $path path of the directory to be created.
@param int $mode the permission to be set for the created directory.
@param bool $recursive whether to create parent directories if they do not exist.
@return bool whether the directory is created successfully
@see \Reaction\Helpers\FileHelper::createDirectory()