On a quick scan, you could probably change this:

                                        + "&delete=false"
                                        + "&noop=true"

On a more general note it would be good to start with fewer options. Then
add options according to the component documentation:

https://camel.apache.org/components/next/sftp-component.html

Greets,

Raymond

Op vr 19 nov. 2021 om 22:33 schreef Wilken Marci J
<marci.j.wil...@dhsoha.state.or.us.invalid>:

> How do I get camel-sftp to stop deleting the file from my local work
> directory after is done downloading.  I just want it to download the file
> and not do anything to it.  When it done all I want to do is pass the name
> of the file to another route that does the processing.  But I see this in
> the log.
> 13:05:16,224 TRACE
> [org.apache.camel.component.file.strategy.GenericFileDeleteProcessStrategy]
> (default task-1) Local work file:
> \EAP\Sahara\Router\RCT\INBOUND\038test_2021_323_1017.txt was deleted: true
>
>
> .simple("sftp://{{file.router.remote.host}}:{{file.router.remote.port}}/{{file.router.remote.home}}";
>                                 + "?password={{ost.ssa.ftp.password}}"
>                                         +
> "&username={{ost.ssa.ftp.username}}"
>                                         +
> "&preferredAuthentications=password"
>                                         + "&delete=true"
>                                         + "&noop=false"
>                                         + "&download=true"
>                                 //      +
> "&include=${header.CamelFileName}"
>                                 //      +
> "&include=^{{inbound.file.prefix}}.*{{inbound.file.suffix}}$"
>                                 //      +  "&useList=true"
>                                 //      +  "&passiveMode=true"
>                                         //
> "&preMove=$simple{file:onlyname}" +
>                                         // "&move=$simple{file:onlyname}" +
>                                         // "&fileName=${file:name}" +
>                                         +
> "&localWorkDirectory={{file.router.local.home}}/{{file.router.inbound.folder}}"
>                                         + "&runLoggingLevel=TRACE" +
> "&jschLoggingLevel=TRACE"
>                                 //      +
> "&move={{file.router.local.home}}/{{file.router.work.folder}}"
>                                         )
>
> Regards-
> Marci Wilken
> She/Her/Hers
> Operations Architect
> Office of Information Services
> OHA/DHS/CAF-CW/OR-KIDS
> Desk: 503.378.2405 Cell: 503.979.9680
>
> CONFIDENTIALITY NOTICE
> This email may contain information that is privileged, confidential, or
> otherwise exempt from disclosure under applicable law. If you are not the
> addressee or it appears from the context or otherwise that you have
> received this email in error, please advise me immediately by reply email,
> keep the contents confidential, and immediately delete the message and any
> attachments from your system.
>
>
>

Reply via email to