tags:

views:

214

answers:

1

Is there a way to find out what the total size of the unextracted archive would be when extracted.

+3  A: 

try this:

ZipFile zFile = new ZipFile(myZipFileName);
long uSize = 0;
foreach (ZipEntry e in zFile) {
    if ( e.IsFile ) {
        uSize += e.Size;
    }
}
devio