title: Checking if folder has files
body: <p>I have program which writes to database which folders are full or empty. Now I'm using </p>
  
  <pre><code>bool hasFiles=false;
  (Directory.GetFiles(path).Length &gt;0) ? hasFiles=true: hasFiles=false;
  </code></pre>
  
  <p>but it takes almost one hour, and I can't do anything in this time.</p>
  
  <p>Is there any fastest way to check if folder has any file ?</p>