On this page
protected function FileTransferLocal::copyFileJailed
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));
  }
}
  © 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
 https://api.drupal.org/api/drupal/includes!filetransfer!local.inc/function/FileTransferLocal::copyFileJailed/7.x