title: Forcefully Replacing Existing Files during Extracting File using System.IO.Compression?
body: <p>I am using the following code to extract all files in a folder</p>
  
  <pre><code>        using (ZipArchive archive = new ZipArchive(zipStream))
          {
              archive.ExtractToDirectory(location);
          }
  </code></pre>
  
  <p>But if one file exist then it throws an exception. Is there is any way to tell the Compression API to replace the existing files. </p>
  
  <p>I found one way is to get all the file names first then check whether file exist and delete it. But this is somehow very costly for me. </p>