I have program which writes to database which folders are full or empty. Now I\'m using
bool hasFiles=false; (Directory.GetFiles(path).Length >0) ? hasFiles=
Your best bet is to use the API function FindFirstFile. It wont take nearly as long then.