Search code examples
ftpapache-camelcamel-ftp

How to check whether a file downloaded from a ftp location is completed or not using apache camel


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


Solution

  • 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.