function FileTransferFTPExtension::createDirectoryJailed

Overrides FileTransfer::createDirectoryJailed

File

includes/filetransfer/ftp.inc, line 70

Class

FileTransferFTPExtension

Code

protected function createDirectoryJailed($directory) {
    if (!ftp_mkdir($this->connection, $directory)) {
        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.