protected function FileTransferLocal::copyFileJailed in Drupal 7
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,
));
}
}