Hi See the file component docs http://camel.apache.org/file2
About the filter option, and further down with some examples how to implement and use that, at section - Filter using org.apache.camel.component.file.GenericFileFilter On Fri, Jan 31, 2014 at 2:40 AM, JKemp <[email protected]> wrote: > I think I'm struggling a bit with where to put the filter expression. Say I > have a route like this: > > <route id="report-file-consolidation"> > <from > uri="file:///data/input?delete=true&include=.*.txt" /> > <split streaming="true"> > <tokenize includeTokens="true" token="\n" > group="5000" /> > <convertBodyTo type="String" charset="UTF-8" > /> > <setHeader headerName="CamelFileName"> > <constant>output-file.txt</constant> > </setHeader> > <to > uri="log:lineparser?showBody=true&showHeaders=true" /> > <to > uri="file:///data/output?fileExist=Append" /> > </split> > </route> > > Where would I put this filter expression? It seems that each file is > processed in its own Exchange, so I don't know what sort of expression I > could put in to detect that they've both been found. Or should I be putting > an Aggregator at the end and adding the filter to that somehow? > > Thanks for the quick reply. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/File-Exists-tp5746608p5746640.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io
