1 local.inc protected FileTransferLocal::copyFileJailed($source, $destination)

Copies a file.

Parameters

$source: The source file.

$destination: The destination file.

Overrides FileTransfer::copyFileJailed

File

core/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));
  }
}