title: Access to the path 'c:\$Recycle.Bin\S-1-5-18' is denied
body: <p>I have this code to copy all files from source-directory, <code>F:\</code>, to destination-directory.</p>
  
  <pre><code>public void Copy(string sourceDir, string targetDir)
  {
    //Exception occurs at this line.
      string[] files = System.IO.Directory.GetFiles(sourceDir, "*.jpg", 
                                               SearchOption.AllDirectories);
  
      foreach (string srcPath in files)
      {
         File.Copy(srcPath, srcPath.Replace(sourceDir, targetDir), true);
      }
  }
  </code></pre>
  
  <p>and getting an exception.</p>
  
  <p>If I omit <code>SearchOption.AllDirectories</code> and it works but only copies files from <code>F:\</code></p>