1.20.x ssh.inc protected FileTransferSSH::removeFileJailed($destination)

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));
  }
}