Re: Check status of each file transfer
It's not newer vs. older code. Both approaches are valid (and always were). It is your choice, what you want to check for.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
# 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.