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

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

commit 48b18e080e58c7079bf3445b6b744e964359f4f9
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Mar 10 09:39:53 2023 +0100

    FTP source - it creates a new folder (if doesn't exist) instead of throwing 
an exception
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 kamelets/ftp-source.kamelet.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/kamelets/ftp-source.kamelet.yaml b/kamelets/ftp-source.kamelet.yaml
index 57c2167c..6a29ae37 100644
--- a/kamelets/ftp-source.kamelet.yaml
+++ b/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