mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-04-06 06:01:12 +00:00
how to Archive Zip file from FromDirectory #197
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @why5684784 on GitHub (Jun 24, 2017).
your Example said
using (var archive = ZipArchive.Create()) { archive.AddAllFromDirectory(@"C:\source"); archive.SaveTo(@"C:\new.zip"); }[https://github.com/adamhathcock/sharpcompress/wiki/API-Examples#archive-random-access-api-example]
but,I don't file the AddAllFromDierctory in ZipArchive.Create()