Extract .zip with status

1

How to extract .zip files in a way that I can see the status of the items being extracted.

Ex:

static string GetStatus() { return "Extraindo... " + current_arquivo; }

Using the Ionic.Zip OpenSource system Ionic.Zip in the codeplex

    
asked by anonymous 14.07.2015 / 13:58

1 answer

1

I think you can use it like this:
Inside the ForEach you will have each file ..

private void MyExtract()
{
  string zipToUnpack = "C1P3SML.zip";
  string unpackDirectory = "Extracted Files";
  using (ZipFile zip1 = ZipFile.Read(zipToUnpack))
  {
      // here, we extract every entry, but we could extract conditionally
      // based on entry name, size, date, checkbox status, etc.  
      foreach (ZipEntry e in zip1)
      {
        e.Extract(unpackDirectory, ExtractExistingFileAction.OverwriteSilently);
      }
   }
}

Click More References

    
13.08.2015 / 22:21