modifying sample script to remove file immediately after successful transfer
Howdy!
We run this script on a gateway that resets often. So we need the script to remove the file soon after the transfer, and not after the queue was processed.
Because if the gateway resets while the transfer is happening, next time all the files will still be in the folder, even the ones that were uploaded.
this is the script that we use:
https://winscp.net/eng/docs/script_local_move_after_successful_upload
We run this script on a gateway that resets often. So we need the script to remove the file soon after the transfer, and not after the queue was processed.
Because if the gateway resets while the transfer is happening, next time all the files will still be in the folder, even the ones that were uploaded.
this is the script that we use:
https://winscp.net/eng/docs/script_local_move_after_successful_upload