路径转换(虚拟 → 物理)
string path = System.Web.HttpContext.Current.Server.MapPath(item.FilePath);
物理删除文件
/// <summary>
/// 文件物理删除
/// </summary>
/// <param name="path">要删除的文件路径:物理路径</param>
public static void FileDel(string path)
{
if (System.IO.File.Exists(path))
{
System.IO.File.Delete(path);
}
}