I script WinSCP with PowerShell and repeatedly but not consistently run into the problem, that after an apparently successful transfer the script fails with "The file exists."
We use the following and cannot update to newer versions:
WinSCP 5.5.1 build 3970
Windows Server 2008 R2 Enterprise Service Pack 1
I attached script and log file. Is there a possibility to get additional information about the failure?