Hi

I'm using FTP2 to sync between a local directory and remote.
The files can be several GB, so I only want to copy if the file does not
already exist,
and also only if the local file is newer.

Since I don't see an option in commons FtpClient like
fileExist=OverwriteIfNewer,
I'm using a FileFilter which uses an FTP consumer to check if that directory
exists on the FTP server,
and then loop to receiveBody until I find a match, then finally comparing
date and size.

Trouble is, I can tell in the binding that my data is already there, so I'm
reading at least some of the data
of all of the files until I find the right file, which I don't even want to
read either.
I really only want  some file details, like the last modified date.

This is easy with FtpClient's listFiles, and I guess I can just use
FtpClient directly in the FileFilter,
but is this achievable with Camel?

Thanks,
Taariq

Reply via email to