final public function FileTransfer::copyFile in Drupal 7
Copies a file.
Parameters
$source: The source file.
$destination: The destination file.
1 call to FileTransfer::copyFile()
- FileTransfer::copyDirectoryJailed in includes/
filetransfer/ filetransfer.inc - Copies a directory.
File
- includes/
filetransfer/ filetransfer.inc, line 132
Class
Code
public final function copyFile($source, $destination) {
$source = $this
->sanitizePath($source);
$destination = $this
->fixRemotePath($destination);
$this
->checkPath($destination);
$this
->copyFileJailed($source, $destination);
}