Reputation: 261
Am having an FTP route from where i will be downloading files i want to apply readLock on it, so when something is being written on that file, i will not download it in the middle, i read about it in file component, but iam not clear on how to apply this option on my FTP route, Please help below is the sample code of my route
from("ftp://localhost:21/export?username=user&password=123&idempotent=true") .to("file:tmp/inbound")
Upvotes: 3
Views: 1866
Reputation: 2230
Add &readLock=changed option in from uri. It will avoid to download the file which being written. it worked for me.
Upvotes: 1
Reputation: 261
please have a look at the below link here they mentioned what options are there and what each option strategy does
Hope this is helpful.
Upvotes: 0