Using the ftp component (see http://camel.apache.org/ftp2.html), you can avoid to download the files by setting download=false. As the ftp component extends the file component, you can retrieve the file name from the headers (see http://camel.apache.org/file2.html). The file component can serve as a batch consumer, hence you'll have the CamelBatchSize and CamelBatchComplete headers set on the exchanges. Using this headers, you can easily aggregate all the filenames using an aggregator (see http://camel.apache.org/aggregator2.html) that completes whenever all files are read from your ftp.
On Thu, Jul 6, 2017 at 1:22 AM, rwoolf <[email protected]> wrote: > I want to log onto an SFTP site once a day and get a list of files that > exist > there. I don't want to download them, but simply get a list of files with > dates/times. Is this possible? I've been looking at the sftp component > but > can't see any way of doing this. > > > > -- > View this message in context: http://camel.465427.n5.nabble. > com/SFTP-list-of-files-tp5805920.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
