You are here

final public function FileTransfer::createDirectory in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::createDirectory()
  2. 10 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::createDirectory()

Creates a directory.

Parameters

string $directory: The directory to be created.

1 call to FileTransfer::createDirectory()
FileTransfer::copyDirectoryJailed in core/lib/Drupal/Core/FileTransfer/FileTransfer.php
Copies a directory.

File

core/lib/Drupal/Core/FileTransfer/FileTransfer.php, line 155

Class

FileTransfer
Defines the base FileTransfer class.

Namespace

Drupal\Core\FileTransfer

Code

public final function createDirectory($directory) {
  $directory = $this
    ->fixRemotePath($directory);
  $this
    ->checkPath($directory);
  $this
    ->createDirectoryJailed($directory);
}