I am currently having trouble downloading a small file from an FTP server using the WinSCP .NET assembly (C#).
I tried using the
The WinSCP version I am using is 5.19.6 on Windows 10.
The problem is: It takes a long time to download a small file if the folder it is in has a lot of files in it.
In our case, it takes between 19 and 50 seconds to download a 21 KB file from a folder that has about 130.000 files in it.
From what I have read in other posts and could see in the log files, the method sends a "LIST" command upfront, which appears to be the cause of this delay.
This behavior is present both on a client FTP server and our own FTP server.
I have attached the log files we got from our FTP server using the
I have also tried adding the
RawSetting "FtpUseMlsd". "0" resulted in "Could not retrieve file information" and "1" had no change.
Can you tell me if I can disable this list command? Or is there a better solution, how to download a specific file from a folder with thousands of files in it?