| 158 | FetchSFTP::WriteCallback::~WriteCallback() = default; |
| 159 | |
| 160 | int64_t FetchSFTP::WriteCallback::process(const std::shared_ptr<io::BaseStream>& stream) { |
| 161 | if (!client_.getFile(remote_file_, *stream)) { |
| 162 | throw utils::SFTPException{client_.getLastError()}; |
| 163 | } |
| 164 | return stream->size(); |
| 165 | } |
| 166 | |
| 167 | void FetchSFTP::onTrigger(const std::shared_ptr<core::ProcessContext> &context, const std::shared_ptr<core::ProcessSession> &session) { |
| 168 | auto flow_file = session->get(); |
nothing calls this directly
no test coverage detected