Hi Yes as Karel describes is a possible way.
Mind that camel-file/ftp is designed for exchanging data via files. Not really as a generic file/ftp component to do a ftp listing, etc. If the aggregation is a bit too much, then you likely would need to build your own java code that uses the ftp client to do your own ftp login and listing. On Thu, Jul 6, 2017 at 8:18 AM, Karel Bernolet <[email protected]> wrote: > 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. >> -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
