yallie / unzip

Tiny unzip helper class for .NET 3.5 Client Profile and Mono 2.10, written in pure C#.
http://nuget.org/packages/unzip
MIT License
28 stars 3 forks source link

Fixed extraction loop to enable the extraction of "directory only" zip f... #1

Closed pysco68 closed 11 years ago

pysco68 commented 11 years ago

...iles that are used to replicate empty (template) folder structures.

I know this "fix" has a small performance cost but it solves my problems and - in fact - makes Unzip act in a more concise way as it does not just "forget" about empty folders!

I did some benchmarking and calling CreateDirectory() a few times too often costs less than checking if we've got to create a folder first.

Hope this helps ;)

yallie commented 11 years ago

Good catch! Thanks :)