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:30 UTC

[camel-kamelets] 01/08: FTP 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 af0e08f9f334c8dea5832b86367f19cf14e1c593
Author: Andrea Cosentino <an...@gmail.com>
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 <an...@gmail.com>
---
 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 b9191105..c74024be 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