title: File.GetFiles or File.EnumerateFiles locks the files?
body: <p>This code works:</p>
  
  <pre><code>File.Copy(file, Path.Combine(destinationFolder, file), true);
  </code></pre>
  
  <p>This does not work:</p>
  
  <pre><code>foreach (string file in Directory.GetFiles(sourceFolder))
  {
      File.Copy(file, Path.Combine(destinationFolder, file), true);
  }
  </code></pre>
  
  <p>It gives an exepction in the first file:</p>
  
  <blockquote>
    <p>The process cannot access the file 'C:\Users\Ricardo\Desktop\Palomas\IMG_20130215_134854.jpg' because it is being used by another process.</p>
  </blockquote>
  
  <p>Why?
  Looks like Directory.GetFiles or Directory.EnumerateFiles locks the file</p>