1.20.x filetransfer.inc public final FileTransfer::copyDirectory($source, $destination)

Copies a directory.

Parameters

$source: The source path.

$destination: The destination path.

File

includes/filetransfer/filetransfer.inc, line 83
Base FileTransfer class.

Class

FileTransfer
@file Base FileTransfer class.

Code

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