4

We decided to use 7zip SDK to compress and decompress files and folders. I know there are many libraries for that but we decided to use the SDK directly. I have seen a sample code that uses the SDK to compress\decompress a file but I could not find a way to do that for Folders. Would appreciate if anyone could share a c# code that uses 7zip SDK directly that can compress\decompress Folders. I do not want to use the 7z.exe (saw many answers to that also)

Community
  • 1
  • 1
Frank
  • 41
  • 2
  • There are several libraries like [SevenZipSharp] (https://sevenzipsharp.codeplex.com/), [SharpCompress](https://github.com/adamhathcock/sharpcompress) , [managed=lzma](https://github.com/weltkante/managed-lzma) and more (Look at the links I provided in the question). Every library has it's pro\con so finally we decided to use straight the SDK but missing the knowledge on how to zip a folder. A file we know how to do [that](http://stackoverflow.com/questions/7646328/how-to-use-the-7z-sdk-to-compress-and-decompress-a-file). – Frank Nov 17 '16 at 14:40
  • Specifically the SevenZipSharp has poor performance when we need to zip a large number of files (+10,000) and I understand it is no longer supported – Frank Nov 17 '16 at 14:42

0 Answers0