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 11:12:12 UTC
[camel-kamelets] 01/07: 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 3.20.x-sftp
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 3b6aaa68b7504b3d7a26f530411462d950054de0
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 55756128..0ad8132f 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()}"