Hi

Some ftp clients cannot get the modification timestamp very precisely.
Maybe only it can get hours and minutes.

You can try enabling the tracer
http://camel.apache.org/tracer

And look for the CamelFileLastModified header which has the
modification timestamp, and see what values it has for the files.
This is the value Camel uses for the sortBy.


On Wed, Apr 3, 2013 at 8:05 AM, sarfaraj <sarfarajsay...@gmail.com> wrote:
> Hi,
>
> We need to consume file based on date modified.
>
> We need to consumed old file first then latest.
>
> I did "sortBy=reverse:file:modifed"....but still its consuming by name.
>
> I also tried "sortBy=file:modifed", but did not worked.
>
> Can someone tell me how to consume old file first in SFTP consumer ?
>
> Here is my from tag............
> <from
> uri="sftp://root@IP_XXXXX://tmp?password=&amp;sortBy=reverse:file:modifed&amp;noop=true";
> />
>
> /Sarfaraj
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-consume-old-file-first-in-SFTP-tp5730253.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to