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

提问

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

回答

if (Directory.Exists(dir)) Directory.Delete(dir, true);
posted @ 2022-10-28 14:16  东百牧码人  阅读(12)  评论(0)    收藏  举报