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
1 2 3 4 5 | protected function removeDirectoryJailed( $directory ) { if (@!ssh2_exec( $this ->connection, 'rm -Rf ' . escapeshellarg ( $directory ))) { throw new FileTransferException( 'Cannot remove @directory.' , NULL, array ( '@directory' => $directory )); } } |
Please login to continue.