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

acosentino 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 ab42bdf  SFTP Source Kamelet improved
ab42bdf is described below

commit ab42bdf404f797e05152029fb6a0894a92f25cae
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Fri Apr 9 16:42:57 2021 +0200

    SFTP Source Kamelet improved
---
 sftp-source.kamelet.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sftp-source.kamelet.yaml b/sftp-source.kamelet.yaml
index a7d376f..38ab95a 100644
--- a/sftp-source.kamelet.yaml
+++ b/sftp-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