title: Checking file/folder access permission
body: <p>I get an <code>UnautorizedAccessException</code> running this code:</p>
  
  <pre><code>string[] fileList = Directory.GetFiles(strDir, strExt);
  </code></pre>
  
  <p>The exception occurs in <code>c:\users\username\appdata</code>
  How can I check if I have access permission (to list and read files) ?</p>