camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fidoedidoe <>
Subject FTP2 consumer (SFTP), using "localWorkDirectory" option - local file not deleted
Date Tue, 25 Nov 2014 12:40:53 GMT

I'm using a FTP2 consumer for SFTP on a linux OS implementation. Due the the
size of the source file (gigabytes), I'm using the option
"localWorkDirectory". According to the  camel documentation
<>   the local local file should be deleted
on Exchange completion. Excerpt from documentation: 

Using Local Work Directory

/Camel supports consuming from remote FTP servers and downloading the files
directly into a local work directory. This avoids reading the entire remote
file content into memory as it is streamed directly into the local file
using FileOutputStream.
Camel will store to a local file with the same name as the remote file,
though with .inprogress as extension while the file is being downloaded.
Afterwards, the file is renamed to remove the .inprogress suffix. And
finally, when the Exchange is complete the local file is deleted./
What I'm finding is the (local) file persists (in my case in the folder:
/tmp/) after the route processing has completed. Does anyone know whether my
interpretation of the documentation is correct and the local file created
should be deleted - or will I have to create my own process to remove the
local file (either in bash / with camel)? 

I have included a (pseudo) representation of the XML DSL I'm using is below. 

Any insight on best practice for the localWorkDirectory option would be most

Many thanks! 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message