You are here

protected function FileTransferLocal::createDirectoryJailed in Drupal 7

Creates a directory.

Parameters

$directory: The directory to be created.

Overrides FileTransfer::createDirectoryJailed

File

includes/filetransfer/local.inc, line 22

Class

FileTransferLocal
The local connection class for copying files as the httpd user.

Code

protected function createDirectoryJailed($directory) {
  if (!is_dir($directory) && @(!mkdir($directory, 0777, TRUE))) {
    throw new FileTransferException('Cannot create directory %directory.', NULL, array(
      '%directory' => $directory,
    ));
  }
}