/// <summary>
/// 判断目录是否存在不存在则创建
/// </summary>
/// <param name="Path"></param>
private static void ExitOrCreate(string Path)
{
if (!Directory.Exists(Path))
{
Directory.CreateDirectory(Path);
}
}

Example:ExitOrCreate(HttpContext.Current.Server.MapPath(“~/FileUpLoad/SavedTel”));

05-26 15:46