We are currently working on a project which have to do with deployment and I'm the process of building utilities for archiving and extracting directories to be deployed. I came across SharpZiplLib in the process while reading some blogs; also the credits page of Sub Text admin pages includes SharpZipLib (this is blogs framework is in SubText).

Using SharpZipLib to extract a folder is pretty easy and straightforward.

Create a zip File based on a directory supplied

   1:  FastZip fastZip;
   2:   
   3:  fastZip = new FastZip();
   4:  fastZip.CreateZip(archiveFileAndLocation, directoryLocation, true, string.Empty);

 

Unzip an Archive File to a specified Folder

   1:  FastZip archiveFile;
   2:   
   3:  archiveFile = new FastZip();
   4:  archiveFile.ExtractZip(<archiveFileAndLocation>, <extractionDirectory>, string.Empty);

 

Nice~!