Skip to content

Commit

Permalink
FTP/FTPS and SFTP: Don't convert body to String, leave as-is or at le…
Browse files Browse the repository at this point in the history
…ast try to convert to inputstream - SFTP Kamelet

Fixes #121
  • Loading branch information
oscerd authored and nicolaferraro committed Apr 9, 2021
1 parent b681ee3 commit 1fb2154
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sftp-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,18 @@ spec:
description: If a directory, will look for files in all the sub-directories as well.
type: boolean
default: false
idempotent:
title: Idempotency
description: Skip already processed files.
type: boolean
default: true
flow:
from:
uri: "sftp:{{username}}@{{host}}:{{port}}/{{directoryName}}"
parameters:
password: "{{password}}"
passiveMode: "{{passiveMode}}"
recursive: "{{recursive}}"
idempotent: "{{idempotent}}"
steps:
- convert-body-to:
type: "java.lang.String"
- to: "kamelet:sink"

0 comments on commit 1fb2154

Please sign in to comment.