SyntaxFix
Write A Post
Hire A Developer
Questions
I use this for folders and files (don't know if it's optimal)
if(Directory.GetFileSystemEntries(path).Length == 0)