WinSCP seems to re-read directory contents about every 2 minutes. While WinSCP is retrieving the list, the UI is blocked and the program is unresponsive. When working in a directory with several thousand files, over a VPN, it can take almost a minute to get the list of files. That only leaves about a minute or so do to any work before the UI is blocked again. Sometimes actively working in WinSCP seems to delay the directory re-read, but still, every few minutes it becomes unresponsive as it reads the directory contents again. Is it possible to control the time between directory re-reads. It would be nice if the directory listing could be run in a background thread so that it does not block the UI.
P.S. I just noticed this in the log.
2023-12-11 18:25:35.273 Dummy directory read to keep session alive.
Could you use a different command to keep the session alive instead of a directory read? Maybe pwd?