camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Polling a directory for inner directories
Date Wed, 06 Aug 2014 13:33:45 GMT
On Wed, Aug 6, 2014 at 12:03 PM, jkir <> wrote:
> Ok thank you Claus, do you happen to know why this isn't supported? It seems
> like it should be fairly simple to enable support for and I imagine it's a
> pretty common use case. If there's nothing preventing it from being included
> then I could hopefully get round to writing a patch for it.

Its trickier as file/ftp etc components rely on files. So if suddenly
its a directory, then many of the options do not apply for noop /
delete / move / read locks / and whatnot.
And the 99,98% use-case is for people to work with the files.

If you want to monitor for directory creations then use some api from
java. Java 7 has nio2 which has better api for that.

> I guess it should have been obvious that the File Consumer was only for
> files, but then I guess I was going by Java's definition of a 'File', which
> includes directories.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message