C# 如何删除文件,将子目录全部改为指定路径
我已经创建了目录及其子目录和文件。。。我必须把它们全部删除。 有什么可能的方法吗?我怎样才能做到这一点C# 如何删除文件,将子目录全部改为指定路径,c#,C#,我已经创建了目录及其子目录和文件。。。我必须把它们全部删除。 有什么可能的方法吗?我怎样才能做到这一点 Directory.Delete("the dir", true); 我想 Directory.Delete(path, true /* recursive */); 将完成此任务。参数之间缺少逗号。 Directory.Delete(path, true /* recursive */);
Directory.Delete("the dir", true);
我想
Directory.Delete(path, true /* recursive */);
将完成此任务。参数之间缺少逗号。
Directory.Delete(path, true /* recursive */);