title: Apache Camel | FTP | Consuming only single file
body: <p>I am trying to read all the text files in a ftp directory, parse them. If the parsing is successful, then move them to a different directory(not the default one i.e. .done directory) and if the parsing fails then file should remain in the ftp directory. The concept looks simple but then my route only reads a single file from ftp and routes ends itself after fetching one file. </p>
  
  <p>Following is the code:</p>
  
  <pre><code>@Override
      public void configure() throws Exception {
  
           from(EndPointConstants.DIRECT + GetDriverProductInfo.class.getSimpleName())  
          .pollEnrich(ftp://ingestion_user@10.207.6.42/fantics?password=******&amp;recursive=true)
          .to("file://test/readFile")
  </code></pre>
  
  <p>Is it something related to pollEnrich that its only able to get a single file and the process is not happening recursively?</p>