Thx I'll try
Funny though it has been in docs since 2.2

https://people.apache.org/~dkulp/camel/file-language.html


/M

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday 28 September 2020 kl. 20:59, Claus Ibsen <[email protected]> 
wrote:

> Try with $simple{ xxx } as workaround.
> Also try with newer Camel version.
>
> I would assume the date:now function is in 2.25.x also.
>
> On Mon, Sep 28, 2020 at 9:35 AM Mikael Andersson Wigander
> [email protected] wrote:
>
> > Hi
> > trying to use the file component and the moveFailed option to create a 
> > directory with a timestamp and put the file there but the date string is 
> > not parsed correctly.
> > This is the yaml string
> > file://mifir/input/import?noop=false&recursive=true&moveFailed=error/${date:now:yyyyMMdd}/${file:name}&maxDepth=3&readLock=changed
> > but the directory that is created is
> > error/now:yyyyMMdd/name/<my file is here>
> > Using Camel 2.25.2 on MacOS
> > /M
>
> --
>
> Claus Ibsen
>
> ------------
>
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2


Reply via email to