Check status of each file transfer
Hi,
I know there are a lot of posts about file move after success of file transfers. But, I noticed there are rather old code (example below).
Example from https://winscp.net/eng/docs/script_local_move_after_successful_upload:
The newer code that checks transfer status looks like ending the whole this
Advice needed. Thanks
I know there are a lot of posts about file move after success of file transfers. But, I noticed there are rather old code (example below).
Example from https://winscp.net/eng/docs/script_local_move_after_successful_upload:
# Iterate over every transfer foreach ($transfer in $transferResult.Transfers) { # Success or error? if ($transfer.Error -eq $Null)
transferResult.Check()
looks like an overall error check and I do not wanted this because at the end I don't know which files are actually successfully transferred and need to restart from beginning – it become disaster when the directory hold large number of files.
Advice needed. Thanks