1.20.x ftp.inc 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));
  }
}