You are here

protected function FileTransferFTPExtension::createDirectoryJailed in Drupal 7

Creates a directory.

Parameters

$directory: The directory to be created.

Overrides FileTransfer::createDirectoryJailed

File

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,
    ));
  }
}