Very Large folder getting Timeout waiting for WinSCP to respond
I've created a PowerShell script that works as expected copying files from a folder with <35K files.
However, WinSCP aborts after 65 seconds using the same script to copy files from a different folder (with >120K files) on the same SFTP server.
I have tried doubling the timeout to:
The error message I get on failure is:
Is there a way to increase the WinSCP timeout when reading a ridiculous number of files in a folder or is something else occurring?
Using WinSCP 5.9.4 on Windows Server 2008
Session & Debug logs attached
However, WinSCP aborts after 65 seconds using the same script to copy files from a different folder (with >120K files) on the same SFTP server.
I have tried doubling the timeout to:
TimeoutInMilliseconds = 120000
The error message I get on failure is:
Exception calling "GetFiles" with "2" argument(s): "Timeout waiting for WinSCP to respond" At E:\Scripts\MOS_DL.ps1:28 char:5 + $session.GetFiles($SelectFiles, "E:\ITS_Archives\MOS\*").Check() + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : TimeoutException
Is there a way to increase the WinSCP timeout when reading a ridiculous number of files in a folder or is something else occurring?
Using WinSCP 5.9.4 on Windows Server 2008
Session & Debug logs attached