protected function FileTransferSSH::removeDirectoryJailed

protected FileTransferSSH::removeDirectoryJailed($directory)

Removes a directory.

Parameters

$directory: The directory to be removed.

Overrides FileTransfer::removeDirectoryJailed

File

includes/filetransfer/ssh.inc, line 52

Class

FileTransferSSH
The SSH connection class for the update module.

Code

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

© 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::removeDirectoryJailed/7.x