protected function FileTransferLocal::createDirectoryJailed

7.x local.inc protected FileTransferLocal::createDirectoryJailed($directory)

Creates a directory.

Parameters

$directory: The directory to be created.

Overrides FileTransfer::createDirectoryJailed

File

drupal-7.x/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));
  }
}