You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/03/09 10:44:35 UTC

[camel-kamelets] 01/06: SFTP source - it creates a new folder (if doesn't exist) instead of throwing an exception

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch autocreate-sftp
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit d2d511f88f10d53ef677bd92dbc23cb865f37693
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 9 11:37:21 2023 +0100

    SFTP source - it creates a new folder (if doesn't exist) instead of throwing an exception
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 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 08d985a8..33703fcc 100644
--- a/kamelets/sftp-source.kamelet.yaml
+++ b/kamelets/sftp-source.kamelet.yaml
@@ -125,6 +125,13 @@ spec:
         default: true
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+      autocreate:
+        title: Autocreate Missing directories
+        description: Automatically create starting directory.
+        type: boolean
+        default: true
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
   dependencies:
     - "camel:ftp"
     - "camel:core"
@@ -145,6 +152,7 @@ spec:
         idempotent: "{{idempotent}}"
         ignoreFileNotFoundOrPermissionError: "{{ignoreFileNotFoundOrPermissionError}}"
         binary: "{{binary}}"
+        autocreate: "{{autocreate}}"
       steps:
       - set-body:
           simple: "${body.getBody()}"