3

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

maxfridbe
  • 5,872
  • 10
  • 58
  • 80

1 Answers1

5

try this:

ZipFile zFile = new ZipFile(myZipFileName);
long uSize = 0;
foreach (ZipEntry e in zFile) {
    if ( e.IsFile ) {
        uSize += e.Size;
    }
}
devio
  • 36,858
  • 7
  • 80
  • 143