1.20.x filetransfer.inc | public final FileTransfer::copyFile($source, $destination) |
Copies a file.
Parameters
$source: The source file.
$destination: The destination file.
File
- includes/
filetransfer/ filetransfer.inc, line 141 - Base FileTransfer class.
Class
- FileTransfer
- @file Base FileTransfer class.
Code
public final function copyFile($source, $destination) {
$source = $this->sanitizePath($source);
$destination = $this->fixRemotePath($destination);
$this->checkPath($destination);
$this->copyFileJailed($source, $destination);
}