private void deletefileOrDic(System.IO.DirectoryInfo path)
        {
            try
            {
                foreach (System.IO.DirectoryInfo d in path.GetDirectories())
                {
                    d.Delete(true);
                }
                foreach (System.IO.FileInfo f in path.GetFiles())
                {
                    f.Delete();
                }
            }
            catch (Exception ex)
            {
            }
        }


相关文章:

  • 2022-12-23
  • 2022-01-22
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
猜你喜欢
  • 2021-12-06
  • 2021-11-15
  • 2021-12-07
  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2022-01-30
相关资源
相似解决方案