protected function FileTransferSSH::createDirectoryJailed

7.x ssh.inc protected FileTransferSSH::createDirectoryJailed($directory)

Creates a directory.

Parameters

$directory: The directory to be created.

Overrides FileTransfer::createDirectoryJailed

File

drupal-7.x/includes/filetransfer/ssh.inc, line 46

Class

FileTransferSSH
The SSH connection class for the update module.

Code

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