FTPExtension::createDirectoryJailed

protected FTPExtension::createDirectoryJailed($directory)

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\FileTransfer

Code

protected function createDirectoryJailed($directory) {
  if (!ftp_mkdir($this->connection, $directory)) {
    throw new FileTransferException("Cannot create directory @directory", NULL, array("@directory" => $directory));
  }
}
doc_Drupal
2016-10-29 09:17:23
Comments
Leave a Comment

Please login to continue.