how to Archive Zip file from FromDirectory #201

Closed
opened 2026-01-29 22:08:13 +00:00 by claunia · 1 comment
Owner

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()

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()
claunia added the question label 2026-01-29 22:08:13 +00:00
Author
Owner

@adamhathcock commented on GitHub (Jun 24, 2017):

It's an extension method. Search the source.

@adamhathcock commented on GitHub (Jun 24, 2017): It's an extension method. Search the source.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#201