Copy large file from sftp

64 views Asked by At

I am copying file from ftp to local system and file is in gigs. I notice that each time when I tried to copy file in iteration it overrides the content.

<route id="ftp" > <"ftp://[email protected]/ftp-test/?password=mypassword"/> <to uri="file://filepath/temp"/> </route>

Tried using .done extension but didn't worked also tried to copy file to another folder but that's also overlapping.

1

There are 1 answers

0
bvyas On BEST ANSWER

Have you tried this.

<route id="incoming" >
    <from uri="file://my/path/incoming"/>
    <to uri="file://my/path/incoming/temp?fileExist=Append"/>
</route>