111,098
社区成员




List<string> A = new List<string>();
FtpAccess getlist = new FtpAccess();
getlist.IP = "172.30.4.50";
getlist.Port = 21;
getlist.UserName = "user";
getlist.Password = "";
try
{
if (getlist.Connect())
{
//getlist.Download("\\update.xml","\\update.xml");
getlist.GetFileList("\\", true, ref A);
if(A==null)
{
MessageBox.Show("没东西");
}
}
else
{
MessageBox.Show("A");
}
}
catch
{
MessageBox.Show("B");
}
}
直接跳过了 getlist.GetFileList("\\", true, ref A); 没有执行,也没有报错,求解