12 #include "SpawningUploadClient.h"
15 #undef B_TRANSLATION_CONTEXT
16 #define B_TRANSLATION_CONTEXT "SftpClient"
22 class SftpClient
: public SpawningUploadClient
{
25 virtual ~SftpClient();
27 virtual bool Connect(const string
& server
,
29 const string
& passwd
);
31 bool PutFile(const string
& local
,
33 ftp_mode mode
= binary_mode
);
35 bool GetFile(const string
& remote
,
37 ftp_mode mode
= binary_mode
);
39 bool MoveFile(const string
& oldPath
,
40 const string
& newPath
);
41 bool ChangeDir(const string
& dir
);
42 bool PrintWorkingDir(string
& dir
);
43 bool ListDirContents(string
& listing
);
44 bool Chmod(const string
& path
, const string
& mod
);
46 void SetPassive(bool on
);
49 const char* _GetLongReadText() const;
50 const char* _GetReadText() const;
51 const char* _GetReplyText() const;
54 #endif // SFTP_CLIENT_H