Hi,
I think you can use org.apache.camel.component.file.GenericFileFilter
for this (I've not tested, if this works with FTP, but it should). See
also the docu of the file component: http://camel.apache.org/file2.html
Best regrads - Claus
On 02.05.2011 11:20, tnk wrote:
Hello,
regarding camel-ftp component (I am using ftps), is there any way to get
file size before consuming the file? The problem is, that I have to load the
whole file into memory and process it. Loading big files into memory would
cause out of memory exception, so I want to limit file size up to N
megabytes. If file is bigger, just log the error message.
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-ftp-and-file-size-check-tp4364251p4364251.html
Sent from the Camel - Users mailing list archive at Nabble.com.