Hi

We do have a ticket in JIRA to supports this out of the box as a
configuration on the fil/ftp endpoint.

What you can do is to send an empty message to the ftp endpoint after
the first file has been uploaded.

from(file)
    .to(ftp)
    .setBody(constant(""))   // set empty body to use for the .done file
    .to(ftp?fileName=${file:onlyname}.done);





On Fri, Nov 26, 2010 at 1:16 PM, florent andré
<florent.andre-...@4sengines.com> wrote:
> Hi all,
> newbie here !
>
> My usecase is :
> - upload files on an ftp (file1.txt, file2.txt,...)
> - for each uploaded file, create an *empty*  {fileName}.done file on the
> ftp server.
>
> I try this configuration add some variants, but nothing good
>
> from("file:test-files?noop=true").
>    to("ftp://goodconfig";)
>    .from("file:test-files?fileName=${file:onlyname}.done&noop=true")
>    .to("ftp://goodconfig";);
>
> How I can create an empty file with camel and transfert it to the ftp ?
> In don't want to use ftp commands if possible.
>
> Cheers.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to