Hi

Yeah its on purpose for some reason, which as I can't really recall right now.



On Tue, Apr 13, 2010 at 2:33 PM, sagy <[email protected]> wrote:
>
> Hi,
> I'm using Camel 2.2 and have the following route:
>
> from("file://test?recursive=true&noop=true").process(...
>
> When I drop a file f1.txt into the test folder the processor gets called.
> When I drop the file f2.txt into a sub folder of test folder for example
> test/sub/f2.txt ,again the processor gets called.
> But when I drop the file f1.txt into test/sub the processor doesn't get
> called.
> This is happening because of line 115 in camel-core
> org.apache.camel.component.file.GenericFileOnCompletion:
>
>            // only add to idempotent repository if we could process the
> file
>            // only use the filename as the key as the file could be moved
> into a done folder
>            endpoint.getIdempotentRepository().add(file.getFileName());
>
> The repository stores just the file name without the path.
> Therefore if 2 files with the same name are dropped to 2 different sub
> directories only the first one will be processed.
> Is this the intended behavior?
> Is there a way to work around it?
>
>
> --
> View this message in context: 
> http://old.nabble.com/File-consumer-with-noop%3Dtrue-recursive%3Dtrue-tp28229501p28229501.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to