diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-17 15:37:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-17 15:40:56 +0100 |
| commit | 1d5462ef8d6a32b964f0335e3dd68aac31075d14 (patch) | |
| tree | 69d94357bbfcc3b194152a6260d3cc450a47e8e9 /src/lib/scp_uploader.cc | |
| parent | b6abe4901c7115d37706f52febe0c7caa5d3c258 (diff) | |
Add FTP uploader using curl.
Diffstat (limited to 'src/lib/scp_uploader.cc')
| -rw-r--r-- | src/lib/scp_uploader.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/scp_uploader.cc b/src/lib/scp_uploader.cc index 7fb716813..5e2d2de13 100644 --- a/src/lib/scp_uploader.cc +++ b/src/lib/scp_uploader.cc @@ -39,8 +39,6 @@ SCPUploader::SCPUploader (function<void (string)> set_status, function<void (flo throw NetworkError (_("could not start SSH session")); } - _set_status (_("connecting")); - ssh_options_set (_session, SSH_OPTIONS_HOST, Config::instance()->tms_ip().c_str ()); ssh_options_set (_session, SSH_OPTIONS_USER, Config::instance()->tms_user().c_str ()); int const port = 22; @@ -91,8 +89,6 @@ SCPUploader::create_directory (boost::filesystem::path directory) void SCPUploader::upload_file (boost::filesystem::path from, boost::filesystem::path to, boost::uintmax_t& transferred, boost::uintmax_t total_size) { - _set_status (String::compose (_("copying %1"), from.leaf ())); - boost::uintmax_t to_do = boost::filesystem::file_size (from); ssh_scp_push_file (_scp, to.string().c_str(), to_do, S_IRUSR | S_IWUSR); |
