判断服务器上的文件是否存在
public bool FileExist(string RemoteFileName)
{
string[]
fileList = GetFileList("*.*");
if (fileList != null)
{
foreach (string str in fileList)
{
if (str.Trim() == RemoteFileName.Trim())
{
return true;
}
}
}
return false;
}