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

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

commit 4d6a6db8451ccca72f88554793967c77a6a17813
Author: Andrea Cosentino <[email protected]>
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 <[email protected]>
---
 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 01902fcc..1b5014f2 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 5f2e308c..66611f5e 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 ab00a1ed..232a9b45 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

Reply via email to