And next time use the @user mailing list to get help about Camel.

The @dev is for discussing development on the actual project itself,
not for end users to ask how to do X, Y etc.


On Thu, Feb 23, 2012 at 9:48 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
> On Thu, Feb 23, 2012 at 9:42 AM, mcheng <hmchen...@gmail.com> wrote:
>> Thanks for you replay. I have tried to use move argument, but it was just
>> moving to other folder. I want to change the file name in the same remote
>> directory.  Do you have other solution for this question?
>>
>
> By default the move option assumes its another directory. If you want
> to rename the file in the same directory, you need to configure the
> move option with the file name tokens, such as
>
> move=${file:name}.error
>
> Which will rename the file to have .error appended. See the tokens at:
> http://camel.apache.org/file-language.html
>
> See more at section _Fine grained control over Move and PreMove option_ at
> http://camel.apache.org/file2
>
> Mind you may have to use a filter to exclude the failed files to avoid
> picking them up again.
>
>
>
>>
>> --
>> View this message in context: 
>> http://camel.465427.n5.nabble.com/rename-file-with-camel-ftp-tp5496480p5507363.html
>> Sent from the Camel Development mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: cib...@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/



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

Reply via email to