protected function FTPExtension::createDirectoryJailed in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/FileTransfer/FTPExtension.php \Drupal\Core\FileTransfer\FTPExtension::createDirectoryJailed()
Creates a directory.
Parameters
string $directory: The directory to be created.
Overrides FileTransfer::createDirectoryJailed
File
- core/
lib/ Drupal/ Core/ FileTransfer/ FTPExtension.php, line 36
Class
- FTPExtension
- Defines a file transfer class using the PHP FTP extension.
Namespace
Drupal\Core\FileTransferCode
protected function createDirectoryJailed($directory) {
if (!ftp_mkdir($this->connection, $directory)) {
throw new FileTransferException("Cannot create directory @directory", NULL, [
"@directory" => $directory,
]);
}
}