Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SSH.php

function SSH::copyFileJailed

Overrides FileTransfer::copyFileJailed

File

core/lib/Drupal/Core/FileTransfer/SSH.php, line 48

Class

SSH
The SSH connection class for the update module.

Namespace

Drupal\Core\FileTransfer

Code

protected function copyFileJailed($source, $destination) {
    if (!@ssh2_scp_send($this->connection, $source, $destination)) {
        throw new FileTransferException('Cannot copy @source_file to @destination_file.', 0, [
            '@source' => $source,
            '@destination' => $destination,
        ]);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal