SharpZipLib extracted file size
-
03-07-2019 - |
Question
Is there a way to find out what the total size of the unextracted archive would be when extracted.
Solution
try this:
ZipFile zFile = new ZipFile(myZipFileName);
long uSize = 0;
foreach (ZipEntry e in zFile) {
if ( e.IsFile ) {
uSize += e.Size;
}
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow