protected function SSH::removeDirectoryJailed

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

Overrides FileTransfer::removeDirectoryJailed

File

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

Class

SSH
The SSH connection class for the update module.

Namespace

Drupal\Core\FileTransfer

Code

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