Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
DirectoryNotFound exception on deleting folder using WPF
deepti gupta
10y
928
1
Reply
Deleting directory using WPF code , sometimes i m getting
DirectoryNotFoundexception
error.
if (Directory.Exists(folderpath))
{
DirectoryInfo directory = new DirectoryInfo(folderpath);
directory.GetFiles("*", SearchOption.AllDirectories).ToList().ForEach(file => file.Delete());
}
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
How to bind MinWidth of DatagridTemplateColumn
WPF project development using mvvm technique