SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to find directories, including those that are marked "hidden" and "system", try this (requires .NET V4):
FileAttributes fa = File.GetAttributes(path); if(fa.HasFlag(FileAttributes.Directory))