title: Processing only modified files using apache camel
body: <p>I have got new requirement to be implemented using apache camel. </p>
  
  <ol>
  <li>process the file without moving it </li>
  <li>process the file only if it is modified</li>
  <li>it is okay to process same file again</li>
  <li>it shouldn't process new file.</li>
  </ol>
  
  <p>As I am new to Apache Camel, I explored feature of file component and got some example and able to achieve first 3 points using below code.</p>
  
  <pre><code>from("file:C://inputFolder?idempotentKey=${file:name}-${file:modified}&amp;noop=true")
      .to("file:C://outputFolder");
  </code></pre>
  
  <p>However unable to achieve the 4th point. Above code picks up the new file which being just created (Meaning created date and modified date is being same).</p>
  
  <p>Could someone help me to achieve the 4th point (i.e. it should not pick up new file in that directory)</p>