camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bilgin Ibryam <>
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 <> 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

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


> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

View raw message