I have seen many tutorials on how to compress a single file in c#. But I need to be able to create a normal *.zip file out of more than just one file. Is there anything in .
My 2 cents:
using (ZipArchive archive = ZipFile.Open(zFile, ZipArchiveMode.Create)) { foreach (var fPath in filePaths) { archive.CreateEntryFromFile(fPath,Path.GetFileName(fPath)); } }
So Zip files could be created directly from files/dirs.