mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
13 lines
No EOL
267 B
C++
13 lines
No EOL
267 B
C++
#include "SshBasics.h"
|
|
|
|
// SFtpGet:
|
|
// Demonstrates a file download, using sftp.
|
|
|
|
void SFtpGet(SshSession& session)
|
|
{
|
|
const char *path = "/readme.txt";
|
|
|
|
SFtp sftp(session);
|
|
String file = sftp.LoadFile(path);
|
|
LOG((!sftp.IsError() ? file : sftp.GetErrorDesc()));
|
|
} |