I searched for examples, but cannot find a DotNetZip script that involves extracting a specific folder. I am trying to extract a folder called "CSS" from a .zip file, and this is the top level folder inside the .zip file. This is the code that I still have:
using (ZipFile zip1 = ZipFile.Read(savedFileName)) { var selection = from e in zip1.Entries where System.IO.Path.GetFileName(e.FileName).StartsWith("CSS/") select e; foreach (var e in selection) e.Extract(_contentFolder); }
The current selection doesn't capture anything, and I can use some help by rewriting it so that it extracts the css folder and all its subdirectories and files.
source share