boukaka
asked on
How to check if a folder is empty
Is there a way to check if a folder is empty and putting up a messagebox if it is? I will not know the names of the files that will be in the folder.
Thanks!
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Awesome, thank you!
Excellent example...perfect
string folderPath = @"C:\Temp";
if (Directory.GetDirectories(
{
MessageBox.Show(folderPath
}