开发者

How to delete files ,subdirectory entirely to specified path

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜