JADE can carry out both pre- and post-processing at the source and at the target parts of the transfer.
A typical post-processing operation at the source would to move or rename a file after it has been copied to the target.
Pre- and post-processing can be triggered for:
- Transfer operations.
- Individual file transfers, so when 3 files are to be transferred, processing would be carried out three times.
In addition, post-processing can be triggered for:
- File rename operations.
Pre- and post-processing can be carried out using the FTP, SFTP and Local protocols: they are not possible with HTTP, HTTPS, SMBF or WebDAV.
The pre- and post-processing operations available are:
- Pre-processing operations:
- CommandBeforeFile:
- commands are executed before each individual file is transferred
- CommandBeforeOperation
- commands are executed before the transfer operation is started
- CommandBeforeFile:
- Post-processing operations:
- CommandAfterFile:
- commands are executed after each file transfer has been completed
- CommandAfterOperation
- commands are executed after the transfer operation has been completed
- CommandBeforeRename
- commands are executed before each individual file is renamed
- CommandAfterFile:
Note that:
- FTP commands have to be used with the FTP protocol and shell commands have to be used with the SFTP protocol.
- special variables are available for commands.