Last edited Nov 16 2009 at 5:22 PM by Cheeso, version 65
Comments
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 :)

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!!!!

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?

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

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

C:\Users\sjoshi\AppData\Local\Temp\TestZip\Test-1
C:\Users\sjoshi\AppData\Local\Temp\TestZip\Test-2
C:\Users\sjoshi\AppData\Local\Temp\TestZip\Test-1\Test-1-1
C:\Users\sjoshi\AppData\Local\Temp\TestZip\Test-1\Test-1-2

Then the resultant zip, does not have any PATH for files under
C:\Users\sjoshi\AppData\Local\Temp\TestZip\Test-1
C:\Users\sjoshi\AppData\Local\Temp\TestZip\Test-2

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)
{
zip.AddDirectory(folder);
}
zip.Save(_backupTo);
}

Any thoughts ?

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 :-)

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

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

Updating...
© 2006-2010 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2010.1.12.16187