camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bilgin Ibryam <bibr...@gmail.com>
Subject Re: FTP consumer > ignore existing files: configuration option?
Date Tue, 10 Jan 2012 10:04:30 GMT
Hi Nic

On 9 January 2012 17:03, iamniche <nhemley@scottlogic.co.uk> wrote:
> Hello,
>
> I am using Camel successfully in my project, but have a question concerning
> the FTP consumer, specifically, with regard to existing files in a watched
> remote folder.
>
> Is there any way of ignoring all files that 'pre-exist' on the server,
> hopefully, through configuration on the route i.e. ignoreExisting=true or
> similar?
>
> I am only interested in *new* files that get added to the remote folder, not
> files that already exist when the route is created via the camel context.

The only solution I'm guessing about is to use a filter with
GenericFileFilter and there implement your logic. Getting file
creation time in java is tricky, but last modified date also might be
enough.

>
> Many thanks for any pointers (maybe I have missed an obvious config param)
>
> Cheerio,
> Nic

HTH
Bilgin

>
> --
> View this message in context: http://camel.465427.n5.nabble.com/FTP-consumer-ignore-existing-files-configuration-option-tp5131747p5131747.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message