public final function FileTransfer::copyFile

7.x filetransfer.inc public final FileTransfer::copyFile($source, $destination)

Copies a file.

Parameters

$source: The source file.

$destination: The destination file.

1 call to FileTransfer::copyFile()
FileTransfer::copyDirectoryJailed in drupal-7.x/includes/filetransfer/filetransfer.inc
Copies a directory.

File

drupal-7.x/includes/filetransfer/filetransfer.inc, line 132

Class

FileTransfer

Code

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