protected function FileTransferSSH::removeDirectoryJailed
Removes a directory.
Parameters
$directory: The directory to be removed.
Overrides FileTransfer::removeDirectoryJailed
Archivo
- drupal-7.x/
includes/ filetransfer/ ssh.inc, line 52
Class
- FileTransferSSH
- The SSH connection class for the update module.
Código
protected function removeDirectoryJailed($directory) {
if (@!ssh2_exec($this->connection, 'rm -Rf ' . escapeshellarg($directory))) {
throw new FileTransferException('Cannot remove @directory.', NULL, array('@directory' => $directory));
}
}