| 211 | PutSFTP::ReadCallback::~ReadCallback() = default; |
| 212 | |
| 213 | int64_t PutSFTP::ReadCallback::process(const std::shared_ptr<io::BaseStream>& stream) { |
| 214 | if (!client_.putFile(target_path_, |
| 215 | *stream, |
| 216 | conflict_resolution_ == CONFLICT_RESOLUTION_REPLACE /*overwrite*/, |
| 217 | stream->size() /*expected_size*/)) { |
| 218 | throw utils::SFTPException{client_.getLastError()}; |
| 219 | } |
| 220 | return stream->size(); |
| 221 | } |
| 222 | |
| 223 | bool PutSFTP::processOne(const std::shared_ptr<core::ProcessContext> &context, const std::shared_ptr<core::ProcessSession> &session) { |
| 224 | auto flow_file = session->get(); |
nothing calls this directly
no test coverage detected