On Wed, May 23, 2012 at 2:47 AM, Nestor Urquiza <nestor.urqu...@gmail.com> wrote: > Hello riders, > > There are times when all you want is to check for the existence of a file, > or the timestamp of it however that is not apparently available in the > FTP/SFTP component as per http://camel.apache.org/ftp.html. > > Does it make sense to have a feature request to allow for this kind of > check? >
No not on the consumer. There is an EIP for that http://camel.apache.org/polling-consumer You can then use receive no wait to try to poll from an endpoint, where you specify the filename you want to check. Also you can use the camel-ftp component API to get hold on the remote file operations API, and invoke the methods there. There is methods to list directory etc. Then you can check from java code, etc. > Thanks, > - Nestor > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-FTP-SFTP-check-instead-of-download-tp5713363.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/