camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: sftp file exists
Date Thu, 29 May 2014 08:10:48 GMT
Hi

Sounds like you should use fileExist=Ignore&delete=true


On Wed, May 28, 2014 at 7:57 PM, bsurya1989 <bsurya1989@gmail.com> wrote:
> Thank you.. I am able to transfer the file. Consider a scenario if a
> file(AMSTest.txt) has to be transferred from  from source(file: component)
> to destination(sftp: component). I am able to transfer it. Now the issue
> comes when I get another file with the same name AMSTest.txt file in source
> then, it should either override the destination(sftp: component) file with
> the latest one or else it should delete the file from source(file:
> component), if the file already exists in destination.
>
> But I am unable find the correct option supported by sftp: component which
> determines whether the file exists or not in the remote sftp server ?
>
> Currently I am using the following endpoint :
> sftp://test:test@localhost:22/sam/?stepwise=false&fileExist=Override&moveExisting=backup-of-${file:name}
>
> What kind of option does sftp: component support to find whether file exists
> or not ? And if it exists how can I override the destination file with
> latest one ?
>
> Please provide your suggestion?
>
> Thanks In Advance.
>
> Thanks and Regards,
> Surya.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/sftp-file-exists-tp5751658p5751664.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message