SSH::removeDirectoryJailed

protected SSH::removeDirectoryJailed($directory)

Removes a directory.

Parameters

string $directory: The directory to be removed.

Overrides FileTransfer::removeDirectoryJailed

File

core/lib/Drupal/Core/FileTransfer/SSH.php, line 75

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));
  }
}
doc_Drupal
2016-10-29 09:43:50
Comments
Leave a Comment

Please login to continue.