Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Directory.Delete() not deleting the empty directory

$
0
0
In C# am having problem in deleting the directory. The directory contains sub directories that have some files.
Now on button click I am first deleting the files, then the sub directory and then the parent directory.
I am getting an error while deleting the parent directory as "directory not empty", however the files and sub directory are successfully deleted.

How to get rid of this ?

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>