protected function FileTransferFTPExtension::createDirectoryJailed

7.x ftp.inc protected FileTransferFTPExtension::createDirectoryJailed($directory)

Creates a directory.

Parameters

$directory: The directory to be created.

Overrides FileTransfer::createDirectoryJailed

File

drupal-7.x/includes/filetransfer/ftp.inc, line 70

Class

FileTransferFTPExtension

Code

protected function createDirectoryJailed($directory) {
  if (!ftp_mkdir($this->connection, $directory)) {
    throw new FileTransferException("Cannot create directory @directory", NULL, array("@directory" => $directory));
  }
}