function FileTransferFTPExtension::copyFileJailed

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,
        ));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.