Can you post a log file from WinSCP GUI as well? Are you running WinSCP GUI on the same machine and in the same environment as the script? Are you using the active mode in the GUI as well?
Hi! I am trying to download a .txt from my server. It works fine if I do it manually with GUI WinSCP (instant download, all good), however if I do it with my software it's just doesn't download anything, like if my current connection is 1KB. I made a log and found "Copying files from remote side failed." there. Also I want to say that exact same code is working on my PC (this problem is on Win server 2012).
Session log attached with private mode for moderators only because of some sensitive data there.