开发者

How to delete files ,subdirectory entirely to specified path

开发者 https://www.devze.com 2023-01-09 09:10 出处:网络
I have created directory and its subdirectory and fi开发者_如何学Cles... I have to delete them entirely.

I have created directory and its subdirectory and fi开发者_如何学Cles... I have to delete them entirely. Is there any possible ways.How can i achieve this


Directory.Delete("the dir", true);

http://msdn.microsoft.com/en-us/library/fxeahc5f.aspx


Directory.Delete(path, true);

http://msdn.microsoft.com/en-us/library/fxeahc5f.aspx


I guess,

Directory.Delete(path, true /* recursive */);

will do the job.

0

精彩评论

暂无评论...
验证码 换一张
取 消