You are here

final public function FileTransfer::copyDirectory in Drupal 7

Copies a directory.

Parameters

$source: The source path.

$destination: The destination path.

File

includes/filetransfer/filetransfer.inc, line 76

Class

FileTransfer

Code

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