title: How to delete folders that are older than some days using camel
body: <p>I wanted to poll a directory and delete the files and folders that are older than a specified time. I wrote the following code :-</p>
  
  <pre><code>            from("file:input?filterFile=${date:file:yyyyMMddHHmm} &lt;= ${date:now-240h:yyyyMMddHHmm}&amp;delay=60000&amp;delete=true")
              .log("The headers are ${headers}");
  </code></pre>
  
  <p>It works fine for files and the old files are deleted but this does not work on folders. Can anyone suggest a way to make it work on folders also?</p>