function SSH::copyDirectoryJailed
Same name in other branches
- 9 core/lib/Drupal/Core/FileTransfer/SSH.php \Drupal\Core\FileTransfer\SSH::copyDirectoryJailed()
- 10 core/lib/Drupal/Core/FileTransfer/SSH.php \Drupal\Core\FileTransfer\SSH::copyDirectoryJailed()
- 11.x core/lib/Drupal/Core/FileTransfer/SSH.php \Drupal\Core\FileTransfer\SSH::copyDirectoryJailed()
Overrides FileTransfer::copyDirectoryJailed
File
-
core/
lib/ Drupal/ Core/ FileTransfer/ SSH.php, line 57
Class
- SSH
- The SSH connection class for the update module.
Namespace
Drupal\Core\FileTransferCode
protected function copyDirectoryJailed($source, $destination) {
if (@(!ssh2_exec($this->connection, 'cp -Rp ' . escapeshellarg($source) . ' ' . escapeshellarg($destination)))) {
throw new FileTransferException('Cannot copy directory @directory.', NULL, [
'@directory' => $source,
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.