title: Apache Camel and FTP processing
body: <p>we are trying to build up a process server in Camel. We have several client, providing files via FTP. We have to mirror the ftp files, but we would like to download only the files we do not have already. The server of the clients have to keep untouched, so no changes are allowed, only reading.</p>
  
  <pre><code>String to = DownloadFolder.getInstance().getDownloadFolder() + File.separator + "test";
                  from("ftp://user@server/downloads/&amp;binary=true&amp;stepwise=false&amp;localWorkDirectory=/tmp")//
                          .process(new ProcessCheckForDownload(to))//
                          .to("file://" + to + "?keepLastModified=true")//
                          .to("jms:queue:FTP_FILE_RECEIVED");
  </code></pre>
  
  <p>The problem is, that ftp is downloading the file before I can check for downloading. When setting download=false, I would be able to check for downloading, but how to move on. I can't process a single file for downloading, at least right now. Next problem is, that this job is broken, because jms would like to get the temp-file, and not the final file.</p>
  
  <p>Perhaps anybody has a hint on how to go on with this problems.</p>