/// <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”));

相关文章:

  • 2022-02-21
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2021-08-09
  • 2022-12-23
相关资源
相似解决方案