I have a zip file compressed using Ionic zip. Before extracting I need to verify the available disk space. But how do I find the uncompressed size before hand? Is there any
public static long GetTotalUnzippedSize(string zipFileName) { using (ZipArchive zipFile = ZipFile.OpenRead(zipFileName)) { return zipFile.Entries.Sum(entry => entry.Length); } }