protected function FileTransferSSH::removeFileJailed in Drupal 7
Removes a file.
Parameters
$destination: The destination file to be removed.
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,
));
}
}