string directoryPath = @"C:\TEMP\"; if (System.IO.Directory.GetDirectories(directoryPath).Length.Equals(0) || System.IO.Directory.GetFiles(directoryPath).Length.Equals(0)) { //Folder is empty do something here }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)