Created
February 9, 2018 23:16
-
-
Save sailro/3a808fd5c015bb973f30cbad76c9b9a3 to your computer and use it in GitHub Desktop.
This file contains 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
var zip = ZipArchive.Read(filename); | |
foreach (var entry in zip.Entries) | |
{ | |
entry.LocalFileHeader.Filename = entry.LocalFileHeader.Filename.Replace("\\", "/"); | |
entry.CentralDirectoryHeader.Filename = entry.LocalFileHeader.Filename; | |
} | |
zip.Write(filename); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment