An unhandled exception of type 'System.NotSupportedException' occurred in ICSharpCode.SharpZipLib.dll Additional information: Compression method not supported
public static bool IsPasswordProtectedZipFile(string path) { using (FileStream fileStreamIn = new FileStream(path, FileMode.Open, FileAccess.Read)) using (ZipInputStream zipInStream = new ZipInputStream(fileStreamIn)) { ZipEntry entry = zipInStream.GetNextEntry(); return entry.IsCrypted; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)