title: I am getting an error saying: System.IO.IOException: 'The directory is not empty. '
body: <p>I am programing to have a file deleted in X- amount of days:</p>
  <pre><code>for (int i = 0; i &lt; 5; i++)
          {
              System.IO.DirectoryInfo fi = new DirectoryInfo(m_strfilename[i].Text);
              if (fi.LastAccessTime &lt; DateTime.Now.AddDays(-Convert.ToInt32(m_dropdown[i].Value)))
                  fi.Delete();
  </code></pre>
  <p>I am not quite sure what the issue is with this.</p>