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/10 08:53:32 UTC

[camel-kamelets] 03/08: 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 ftp-autocreate
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 6b12b6ed50b836ed96656110b5ebacfe365d31ef
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 10 09:44:57 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                                 | 2 +-
 .../src/main/resources/kamelets/ftp-sink.kamelet.yaml             | 8 ++++++++
 .../src/main/resources/kamelets/ftp-source.kamelet.yaml           | 8 ++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/kamelets/sftp-source.kamelet.yaml b/kamelets/sftp-source.kamelet.yaml
index b809fe33..bb8b2453 100644
--- a/kamelets/sftp-source.kamelet.yaml
+++ b/kamelets/sftp-source.kamelet.yaml
@@ -125,7 +125,7 @@ spec:
         default: true
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
-      autocreate:
+      autoCreate:
         title: Autocreate Missing Directories
         description: Automatically create starting directory.
         type: boolean
diff --git a/library/camel-kamelets/src/main/resources/kamelets/ftp-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/ftp-sink.kamelet.yaml
index 1e81ac59..0b8d8c8e 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/ftp-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/ftp-sink.kamelet.yaml
@@ -91,6 +91,13 @@ spec:
         default: false
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+      autocreate:
+        title: Autocreate Missing Directories
+        description: Automatically create the directory the files should be written to.
+        type: boolean
+        default: true
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
   dependencies:
     - "camel:ftp"
     - "camel:core"
@@ -118,3 +125,4 @@ spec:
             passiveMode: "{{passiveMode}}"
             fileExist: "{{fileExist}}"
             binary: "{{binary}}"
+            autocreate: "{{autocreate}}"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/ftp-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/ftp-source.kamelet.yaml
index b9191105..c74024be 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/ftp-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/ftp-source.kamelet.yaml
@@ -95,6 +95,13 @@ spec:
         default: false
         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"
@@ -108,6 +115,7 @@ spec:
         recursive: "{{recursive}}"
         idempotent: "{{idempotent}}"
         binary: "{{binary}}"
+        autocreate: "{{autocreate}}"
       steps:
       - set-header:
           name: file