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;
}
转载于:https://www.cnblogs.com/xadmin/p/7196083.html