function FileTransferSSH::copyDirectoryJailed

Overrides FileTransfer::copyDirectoryJailed

File

includes/filetransfer/ssh.inc, line 40

Class

FileTransferSSH
The SSH connection class for the update module.

Code

protected function copyDirectoryJailed($source, $destination) {
    if (@(!ssh2_exec($this->connection, 'cp -Rp ' . escapeshellarg($source) . ' ' . escapeshellarg($destination)))) {
        throw new FileTransferException('Cannot copy directory @directory.', NULL, array(
            '@directory' => $source,
        ));
    }
}

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