You are here

final public function FileTransfer::copyDirectory in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::copyDirectory()

Copies a directory.

Parameters

string $source: The source path.

string $destination: The destination path.

File

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

Class

FileTransfer
Defines the base FileTransfer class.

Namespace

Drupal\Core\FileTransfer

Code

public final function copyDirectory($source, $destination) {
  $source = $this
    ->sanitizePath($source);
  $destination = $this
    ->fixRemotePath($destination);
  $this
    ->checkPath($destination);
  $this
    ->copyDirectoryJailed($source, $destination);
}