protected function Local::copyFileJailed

Implements Drupal\Core\FileTransfer\FileTransfer::copyFileJailed().

Overrides FileTransfer::copyFileJailed

File

drupal/core/lib/Drupal/Core/FileTransfer/Local.php, line 35
Definition of Drupal\Core\FileTransfer\Local.

Class

Local
Defines the local connection class for copying files as the httpd user.

Namespace

Drupal\Core\FileTransfer

Code

protected function copyFileJailed($source, $destination) {
  if (@(!copy($source, $destination))) {
    throw new FileTransferException('Cannot copy %source to %destination.', NULL, array(
      '%source' => $source,
      '%destination' => $destination,
    ));
  }
}