Answer the question
In order to leave comments, you need to log in
How to list more than 10000 files in ftp?
Hello, I am reading the list of files in a remote folder via FTP, there are about 50 thousand of them.
FtpWebRequest request = (FtpWebRequest)WebRequest.Create(P3);
request.Method = WebRequestMethods.Ftp.ListDirectory;
FtpWebResponse resp = (FtpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(resp.GetResponseStream(), Encoding.Default);
while (c == 0)
{
s = reader.ReadLine();
i++;
..............
}
Gives out 10 thousand, as well as ftp clients like Total Commander. How to get a list of all? Or is it a server limitation?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question