protected function SSH::createDirectoryJailed
protected SSH::createDirectoryJailed($directory)
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.', NULL, array('@directory' => $directory)); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!FileTransfer!SSH.php/function/SSH::createDirectoryJailed/8.1.x