I need to check whether the file downloaded from a ftp location using camel is completed, being downloaded or the connection broke. If completed I need to do a certain function else I need to make another call
The FTP
component also has the capabilities of File2
. If you check the docs you'll see options for preMove
, move
, and moveFailed
. You can change the names of files and/or change the location of files before processing, after successful processing, and after failure.