This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch 1507-3.20.x in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 68435760d6a681ce8996bb4ee7ceb572de43b3da Author: Andrea Cosentino <[email protected]> AuthorDate: Fri Jun 16 12:23:02 2023 +0200 FTP/SFTP/FTPS Source Kamelets: Add Delete option for SFTP Signed-off-by: Andrea Cosentino <[email protected]> --- kamelets/sftp-source.kamelet.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kamelets/sftp-source.kamelet.yaml b/kamelets/sftp-source.kamelet.yaml index 39ab92cb..14746b6e 100644 --- a/kamelets/sftp-source.kamelet.yaml +++ b/kamelets/sftp-source.kamelet.yaml @@ -132,6 +132,13 @@ spec: default: true x-descriptors: - 'urn:alm:descriptor:com.tectonic.ui:checkbox' + delete: + title: Delete + description: If true, the file will be deleted after it is processed successfully. + type: boolean + default: false + x-descriptors: + - 'urn:alm:descriptor:com.tectonic.ui:checkbox' dependencies: - "camel:ftp" - "camel:core" @@ -153,6 +160,7 @@ spec: ignoreFileNotFoundOrPermissionError: "{{ignoreFileNotFoundOrPermissionError}}" binary: "{{binary}}" autoCreate: "{{autoCreate}}" + delete: "{{delete}}" steps: - set-body: simple: "${body.getBody()}"
