protected function SSH::removeFileJailed

Implements Drupal\Core\FileTransfer\FileTransfer::removeFileJailed().

Overrides FileTransfer::removeFileJailed

File

drupal/core/lib/Drupal/Core/FileTransfer/SSH.php, line 89
Definition of Drupal\Core\FileTransfer\SSH.

Class

SSH
The SSH connection class for the update module.

Namespace

Drupal\Core\FileTransfer

Code

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