function FileTransferSSH::createDirectoryJailed

Overrides FileTransfer::createDirectoryJailed

File

includes/filetransfer/ssh.inc, line 46

Class

FileTransferSSH
The SSH connection class for the update module.

Code

protected function createDirectoryJailed($directory) {
    if (@(!ssh2_exec($this->connection, 'mkdir ' . escapeshellarg($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.