On Tue, Apr 13, 2010 at 3:33 PM, sagy <[email protected]> wrote: > > I'm actually trying to consume files from a directory recursively and the > directory has read-only permissions. > Is there another way to do it without using noop=true&recursive=true ? >
You can filter out the read-only directory if you should "skip" it. > Thanks, > Sagy > > > > Claus Ibsen-2 wrote: >> >> 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 >> >> > > -- > View this message in context: > http://old.nabble.com/File-consumer-with-noop%3Dtrue-recursive%3Dtrue-tp28229501p28230077.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
