string folder = HttpContext.Server.MapPath(文件名); if (!Directory.Exists(folder)) { Directory.CreateDirectory(folder); }