Hi all, I am currently looking at the File2 processor, and it seems to me that my fairly simple use case isn't covered by this. I am a complete Camel newbie, so I am hoping someone can prove me wrong or suggest an alternative!
I want to be able to watch a directory for changes, but I only want to further process the subdirectories of that directory when they appear, NOT the files. For example, if I was watching the D directory in: D/ - D1/ -- f1.txt -- f2.txt - D2/ -- f3.txt -- f4.txt Then I would want to process two events for D1 and D2, ignoring any files underneath. Currently, with the consumer: file://C:/D?moveFailed=failed&preMove=processing&move=processed/${file:name} This will fail to pick up the subdirectories inside D, only matching when files are placed immediately below D but not directories. The documentation implies that directories can be matched by using a FileFilter (http://camel.apache.org/file2.html#File2-Filterusingorg.apache.camel.component.file.GenericFileFilter), however in my testing even this exact example still does not appear to match directories, only files. Has anyone got any suggestions? Thanks in advance, James -- View this message in context: http://camel.465427.n5.nabble.com/Polling-a-directory-for-inner-directories-tp5754812.html Sent from the Camel - Users mailing list archive at Nabble.com.