public bool UriExists(string url) {
try
{
new System.Net.WebClient().OpenRead(url);
return true;
}
catch (System.Net.WebException)
{
return false;
}
}
判断远程文件是否存在
最新推荐文章于 2021-03-10 00:12:14 发布