Update main with some new compression formats. #37

Merged
That-One-Nerd merged 11 commits from more-compression-options into main 2023-03-31 11:02:30 -04:00
Showing only changes of commit ce72491109 - Show all commits

View File

@ -134,10 +134,16 @@ public static class ExtractionModule
if (!Directory.Exists(destination)) Directory.CreateDirectory(destination);
FileStream reader = new(source, FileMode.Open);
SevenZipArchive zip = SevenZipArchive.Open(source);
SevenZipArchive zip = SevenZipArchive.Open(reader);
IReader data = zip.ExtractAllEntries();
data.WriteAllToDirectory(destination);
data.WriteAllToDirectory(destination, new()
{
ExtractFullPath = true,
Overwrite = true,
PreserveAttributes = true,
PreserveFileTime = true
});
zip.Dispose();
reader.Dispose();