wangyao1135
public void delfile(string path)
        {
            if (Directory.Exists(path))
            {
                foreach (string d in Directory.GetFileSystemEntries(path))
                {
                    if (File.Exists(d))
                        File.Delete(d);
                    else
                        delfile(path);
                }
                Directory.Delete(path, true);
            }
        }

分类:

技术点:

相关文章:

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