protected function SSH::removeFileJailed
protected SSH::removeFileJailed($destination)
Removes a file.
Parameters
string $destination: The destination file to be removed.
Overrides FileTransfer::removeFileJailed
File
- core/lib/Drupal/Core/FileTransfer/SSH.php, line 84
Class
- SSH
- The SSH connection class for the update module.
Namespace
Drupal\Core\FileTransferCode
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/core!lib!Drupal!Core!FileTransfer!SSH.php/function/SSH::removeFileJailed/8.1.x