protected function FileTransferFTPExtension::copyFileJailed

protected FileTransferFTPExtension::copyFileJailed($source, $destination)

Copies a file.

Parameters

$source: The source file.

$destination: The destination file.

Overrides FileTransfer::copyFileJailed

File

includes/filetransfer/ftp.inc, line 64

Class

FileTransferFTPExtension

Code

protected function copyFileJailed($source, $destination) {
  if (!@ftp_put($this->connection, $destination, $source, FTP_BINARY)) {
    throw new FileTransferException("Cannot move @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!ftp.inc/function/FileTransferFTPExtension::copyFileJailed/7.x