I've just been trying this out in a simple Windows Forms app, and my code is running very slowly. The code is basically:
ftp = new FTPClient("server");
ftp.ConnectMode = FTPConnectMode.PASV;
ftp.Login("username","password");
DateTime t2 = DateTime.Now;
ftp.Chdir(rootDir);
DateTime t3 = DateTime.Now;
string[] dir = ftp.Dir();
dir = ftp.Dir();
DateTime t4 = DateTime.Now;
From looking at the values of t2-t4, the login and chdir(folder) command both seem to be zippy, but a dir() command is taking 8-9 seconds. Am I doing something wrong? Are there API tweaks I'm missing? Regular FTP clients are running at normal speed.
Thanks.