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

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

commit a4c5a253c5ce0f626a2b8d4387106d7f993e25d2
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Fri Apr 9 16:09:43 2021 +0200

    FTP/FTPS and SFTP Source Kamelet: Add an header containing the filename 
named file and ce-file - SFTP Kamelet
---
 ftps-source.kamelet.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ftps-source.kamelet.yaml b/ftps-source.kamelet.yaml
index 38d566d..a819d10 100644
--- a/ftps-source.kamelet.yaml
+++ b/ftps-source.kamelet.yaml
@@ -67,6 +67,12 @@ spec:
         recursive: "{{recursive}}"
         idempotent: "{{idempotent}}"
       steps:
+      - set-header:
+          name: file
+          simple: "${header[CamelFileName]}"
+      - set-header:
+          name: ce-file
+          simple: "${header[CamelFileName]}"
       - convert-body-to:
           type: "java.io.InputStream"
       - to: "kamelet:sink"

Reply via email to