Last edited Nov 16, 2009 at 5:22 PM by Cheeso, version 65


thinksomid Feb 15, 2013 at 10:41 PM 
hi Cheeso, tnx alot.
i chked docs but didnt see any code sample to iterate trough all items of a folder in a zip file!
i want to remove just one folder and its contents within a zip file, but it just removes the folder, not contents inside the folder, thus the folder itself still remains in zip file :)
i tried iteration by casting folder entity to directoryInfo but paths in zip file are not helpfull to do that.
hlp pls

lailailai Nov 21, 2012 at 9:24 AM 
Thank you it work for me, but only one question. If follow your tutorial the zipped files or folder is place beside the software. Is it possible place it to desktop??

Priyabrata5 Oct 10, 2012 at 1:45 PM 
How can i browse a Zipped folder using FileOpen dialog box. Is there any support from Ionic.Zip ?

The_False_Rock Oct 9, 2012 at 11:41 AM 
Hi All,

We are using this utility to unzip a zip file and store the unzip files into DB. The unzip files are PDF files with digital siganure in them. The problem is when we unzip these files and digital sigature inside files is lost. We tried saving them to some folder but still the siganure were lost. We need to deply this code into PROD asap. Please help!!

Appriciate you help!!!

Cheeso Oct 29, 2009 at 1:55 PM 
sjoshi - there's an overload of AddDirectory that will do what you want.

Cheeso Oct 29, 2009 at 1:47 PM 
Thanks for the comments. If any of you have actual questions, you gotta use the forums. I rarely scan the comments on the various wiki pages. Your questions will get quick attention though, on the forums.

janvanderwatt Oct 29, 2009 at 9:14 AM 
Absolutely fantastic! Worked first time - works all the time. Thanks, you saved me MANY worries (I've been struggling for days!). I'm using this on Mono to create Word DOCX files (since the Microsoft DLL cannot be used, due to Win32 dependencies). And this library generates smaller files too! Heaps and heaps of thanks! When I get paid, my donation will be on its way :-)

sjoshi Oct 28, 2009 at 9:44 PM 
When I try to add these sub-folders


Then the resultant zip, does not have any PATH for files under

Their files are added at the ROOT without any PATH, so unzipping the zip will put them at the root without creating sub-folders. I was using

using (ZipFile zip = new ZipFile())
foreach (var folder in _foldersToBackup)

Any thoughts ?

Cheeso Aug 4, 2009 at 12:42 PM 
Chudq - check the doc. It will throw.

chudq Jun 27, 2009 at 5:19 PM 
What happens if I add a file to zip file by using AddFile("FileMayExistInZip.test"), ie, the file may exist in zip file? Will it overwrite, do nothing or throw exception?

NTTAKR Jun 16, 2009 at 10:22 AM 
Impressive.... VERY IMPRESSIVE!!!!

A library that delivers on its promises and does not dictate the user how to use it but instead adapts to all sorts of style a developer could like to use to work with zip-files.
I worked with several other solutions so far, but I am really shocked how far advanced this library is.

Keep up the good work!!!!

mhepburn Aug 12, 2008 at 7:38 PM 
I'm very impressed by this library. After several hours of searching for a way to extract encrypted zipped files, this let me do it in 3 lines of code. Thanks a ton for putting so much obvious effort into this :)