string path = "xxxx";
DirectoryInfo di = new DirectoryInfo(path);
FileAttributes attr = File.GetAttributes(path);
if (di.Exists)
{
Directory.Delete(path, true);
}
C# 删除文件夹
最新推荐文章于 2024-05-24 14:35:32 发布