mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
13 lines
No EOL
283 B
C++
13 lines
No EOL
283 B
C++
#include "SshBasics.h"
|
|
|
|
// ScpGet:
|
|
// Demonstrates a file download using scp.
|
|
|
|
void ScpGet(SshSession& session)
|
|
{
|
|
const char *path = "the/full/path/of/the/file/to/downlad";
|
|
|
|
Scp scp(session);
|
|
String file = scp.LoadFile(path);
|
|
LOG((!scp.IsError() ? file : scp.GetErrorDesc()));
|
|
} |