I have been testing with the .NET assembly via PowerShell. I am using 5 batches and it seems to be working but at various points in running through a couple of transfers I get this following error.
MethodInvocationException:
Line |
16 | if (!($using:filesEnumerator).MoveNext())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling "MoveNext" with "0" argument(s): "Timeout waiting for WinSCP to respond"
My data is like 30+ folders with each folder roughly having 1000 files in each. I think the
fileEnumerator
is bogged down and not responding fast enough and eventually times out. I looked at the
IEnumerator.MoveNext
and it doesn't appear that I can feed any parameters to extend the timeout. Any thoughts?