function FileTransferSSH::removeFileJailed

Overrides FileTransfer::removeFileJailed

File

includes/filetransfer/ssh.inc, line 58

Class

FileTransferSSH
The SSH connection class for the update module.

Code

protected function removeFileJailed($destination) {
    if (!@ssh2_exec($this->connection, 'rm ' . escapeshellarg($destination))) {
        throw new FileTransferException('Cannot remove @directory.', NULL, array(
            '@directory' => $destination,
        ));
    }
}

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