title: Apache Camel: FTP files with scheduler (close connection when directory is empty)
body: <p>I would like to use Apache Camel for sending files from a local directory to a FTP location. We only get 1 or 2 times a day files in that local directory. So it isn’t necessary to have that connection open the whole day. What I would like to achieve is that we will open the connection when there are files in the directory (this is something we could do by checking the dir), but how could we check if sending the files with Apache Camel is done and close the connection?</p>
  
  <p>Is there some feedback from the RouteBuilder or what is the best way to achieve this?</p>
  
  <p>Thanks</p>