function FileTransferLocal::createDirectoryJailed

Overrides FileTransfer::createDirectoryJailed

File

includes/filetransfer/local.inc, line 22

Class

FileTransferLocal
The local connection class for copying files as the httpd user.

Code

protected function createDirectoryJailed($directory) {
    if (!is_dir($directory) && @(!mkdir($directory, 0777, TRUE))) {
        throw new FileTransferException('Cannot create directory %directory.', NULL, array(
            '%directory' => $directory,
        ));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.