Hi Then do a route that is
from ftp to file And then it will move the file from the local work directory to the final file destination On Fri, Nov 19, 2021 at 10:33 PM Wilken Marci J <[email protected]> wrote: > > 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. > > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
