This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 1fb21548797273ba45bf457df8821a4a670f159f Author: Andrea Cosentino <[email protected]> AuthorDate: Thu Apr 8 18:13:59 2021 +0200 FTP/FTPS and SFTP: Don't convert body to String, leave as-is or at least try to convert to inputstream - SFTP Kamelet Fixes #121 --- sftp-source.kamelet.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sftp-source.kamelet.yaml b/sftp-source.kamelet.yaml index 26104ac..0f92931 100644 --- a/sftp-source.kamelet.yaml +++ b/sftp-source.kamelet.yaml @@ -53,6 +53,11 @@ spec: description: If a directory, will look for files in all the sub-directories as well. type: boolean default: false + idempotent: + title: Idempotency + description: Skip already processed files. + type: boolean + default: true flow: from: uri: "sftp:{{username}}@{{host}}:{{port}}/{{directoryName}}" @@ -60,7 +65,6 @@ spec: password: "{{password}}" passiveMode: "{{passiveMode}}" recursive: "{{recursive}}" + idempotent: "{{idempotent}}" steps: - - convert-body-to: - type: "java.lang.String" - to: "kamelet:sink"
