创建目录

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

posted @ 2015-07-01 13:53  caijinhao  阅读(139)  评论(0编辑  收藏  举报