protected function SSH::createDirectoryJailed

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

Overrides FileTransfer::createDirectoryJailed

File

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

Class

SSH
The SSH connection class for the update module.

Namespace

Drupal\Core\FileTransfer

Code

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