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 10:44:36 UTC
[camel-kamelets] 02/06: 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 autocreate-sftp
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit f7ce31d3df6100fe654b5541e972e9a39b30a81b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 9 11:38:17 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>
---
.../src/main/resources/kamelets/sftp-source.kamelet.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/sftp-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/sftp-source.kamelet.yaml
index 08d985a8..33703fcc 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/sftp-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/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()}"