1.20.x local.inc | protected FileTransferLocal::copyFileJailed($source, $destination) |
Copies a file.
Parameters
$source: The source file.
$destination: The destination file.
Overrides FileTransfer::copyFileJailed
File
- includes/
filetransfer/ local.inc, line 16
Class
- FileTransferLocal
- The local connection class for copying files as the httpd user.
Code
protected function copyFileJailed($source, $destination) {
if (@!copy($source, $destination)) {
throw new FileTransferException('Cannot copy %source to %destination.', NULL, array('%source' => $source, '%destination' => $destination));
}
}