title: .NET - Check if directory is accessible without exception handling
body: <p>I need to go through various directories on the computer (via DirectoryInfo). Some of them aren't accessible, and UnauthorizedAccessException occurs. How can I check directory access without catching the exception?</p>