Created
September 4, 2014 05:49
-
-
Save kosinix/993b09fbb3389e44391b to your computer and use it in GitHub Desktop.
C# - Delete a folder in a zip using dotnetzip. Docs: http://dotnetzip.herobo.com/DNZHelp/Index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using (ZipFile zip = ZipFile.Read(@"D:\path\to\ZipFile.zip")) | |
| { | |
| zip.RemoveSelectedEntries("foldername/*"); // Remove folder and all its contents | |
| zip.Save(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment