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.