camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bsurya1989 <bsurya1...@gmail.com>
Subject Re: sftp file exists
Date Thu, 29 May 2014 08:28:21 GMT
Hi Claus,

source :
file:data/inbox?include=AMS.*.txt&delay=1000&idempotent=false&delete=true

destination :
sftp://test:test@localhost:22/sam/?stepwise=false&fileExist=Override&disconnect=true

These endpoints worked fine for me.

The above endpoints does the following : 

It polls(for every 1 second) the a folder called 'inbox', which consists of
files starting with 'AMS' pattern. The file is been transfered to sftp
endpoint. If the file already exists at destination then it would replace
the file with latest file coming from source.

Hope this piece of code helps others.

Thanks a lot Claus for your valuable suggestions.

Regards,
Surya.



--
View this message in context: http://camel.465427.n5.nabble.com/sftp-file-exists-tp5751658p5751694.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message