FileTransferSSH::removeFileJailed
protected function FileTransferSSH::removeFileJailed
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)); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!filetransfer!ssh.inc/function/FileTransferSSH::removeFileJailed/7.x