判断文件夹是否存在
if (!Directory.Exists(System.Web.HttpContext.Current.Server.MapPath("路径")))
{
Directory.CreateDirectory(System.Web.HttpContext.Current.Server.MapPath("路径"));
}
if (!Directory.Exists(System.Web.HttpContext.Current.Server.MapPath("路径")))
{
Directory.CreateDirectory(System.Web.HttpContext.Current.Server.MapPath("路径"));
}
File.Exists(); //判断文件是否存在
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。