title: Apache camel file with doneFileName
body: <p>I am just starting to look at apache camel (Using blueprint routes) and I am already stuck.</p>
  
  <p>I need to process a set of csv files with different formats. I get 5 files with foo_X_20160110.csv were X specifies the type of csv file and the files have a date stamp . These files can be quite large so a 'done' file is written once all files are written. The done file is named foo_trigger_20160110.csv. </p>
  
  <p>I've seen the doneFileName option on file but that only supports a static name (I have a date in the filename) or it expects a done file for each input file. </p>
  
  <p>The files have to be proceeded in a fixed order but it is not guaranteed in which order they are written to the input directory. Hence I need to wait for the done file. </p>
  
  <p>Any idea how this can be done with Camel?</p>
  
  <p>Any suggestions for good Camel books?</p>