function SSH::createDirectoryJailed
Creates a directory.
Parameters
string $directory: The directory to be created.
Overrides FileTransfer::createDirectoryJailed
File
-
core/
lib/ Drupal/ Core/ FileTransfer/ SSH.php, line 66
Class
- SSH
- The SSH connection class for the update module.
Namespace
Drupal\Core\FileTransferCode
protected function createDirectoryJailed($directory) {
if (@!ssh2_exec($this->connection, 'mkdir ' . escapeshellarg($directory))) {
throw new FileTransferException('Cannot create directory @directory.', 0, [
'@directory' => $directory,
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.