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

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

commit 3854943b49ac8d79db650ff0eb050bbe3e20e0b3
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Fri Mar 5 16:42:14 2021 +0100

    FTP Source Kamelet: Add passiveMode, recursive and convert body to String
---
 ftp-source.kamelet.yaml | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/ftp-source.kamelet.yaml b/ftp-source.kamelet.yaml
index 935b3d4..f3e2378 100644
--- a/ftp-source.kamelet.yaml
+++ b/ftp-source.kamelet.yaml
@@ -39,9 +39,19 @@ spec:
         x-descriptors:
         - urn:alm:descriptor:com.tectonic.ui:password
       directoryName:
-        title: directoryName
+        title: Directory Name
         description: The starting directory
         type: string
+      passiveMode:
+        title: Passive Mode
+        description: Sets passive mode connection
+        type: boolean
+        default: false
+      recursive:
+        title: Recursive
+        description: If a directory, will look for files in all the 
sub-directories as well.
+        type: boolean
+        default: false
   types:
     out:
       mediaType: application/json
@@ -52,5 +62,9 @@ spec:
       uri: "ftp:{{username}}@{{host}}:{{port}}/{{directoryName}}"
       parameters:
         password: "{{password}}"
+        passiveMode: "{{passiveMode}}"
+        recursive: "{{recursive}}"
       steps:
+      - convert-body-to:
+          type: "java.lang.String"
       - to: "kamelet:sink"

Reply via email to