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

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


The following commit(s) were added to refs/heads/master by this push:
     new e4f05f3  FTP/FTPS and SFTP Source Kamelet: Add an header containing 
the filename named file and ce-file - FTP Kamelet
e4f05f3 is described below

commit e4f05f3921a4c151dad0f94d9fcbc5b88d2d63cc
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Fri Apr 9 16:05:38 2021 +0200

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

diff --git a/ftp-source.kamelet.yaml b/ftp-source.kamelet.yaml
index 5affce7..99cafcc 100644
--- a/ftp-source.kamelet.yaml
+++ b/ftp-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