如何删除带有内容的文件夹

提问

如何删除带有内容的文件夹

回答

if (Directory.Exists(dir)) Directory.Delete(dir, true);
posted @ 2022-10-28 14:16  喜爱糖葫芦  阅读(0)  评论(0编辑  收藏  举报