protected function FileTransferFTPExtension::copyFileJailed in Drupal 7
Copies a file.
Parameters
$source: The source file.
$destination: The destination file.
Overrides FileTransfer::copyFileJailed
File
- includes/
filetransfer/ ftp.inc, line 64
Class
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,
));
}
}