Skip to content

Commit

Permalink
Fixed archive extraction issue when downloading newer version of Medn…
Browse files Browse the repository at this point in the history
…afen - #186
  • Loading branch information
Asnivor committed Sep 25, 2017
1 parent 1469b1b commit 6003755
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion MedLaunch.Common/IO/Compression/Archive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public static string[] ExtractFile(string archivePath, string[] internalPath, st
}

/// <summary>
/// extract entire zip archive using builtin .NET classes
/// extract entire zip archive using sevenzipsharp
/// </summary>
/// <param name="archivePath"></param>
/// <param name="outputDirectory"></param>
Expand All @@ -329,10 +329,17 @@ public static void ExtractEntireZip(string archivePath, string outputDirectory)
{
try
{
using (SevenZipExtractor archive = new SevenZipExtractor(archivePath))
{
archive.ExtractArchive(outputDirectory);
}

/*
using (ZipArchive archive = ZipFile.Open(archivePath, ZipArchiveMode.Read))
{
archive.ExtractToDirectory(outputDirectory, true);
}
*/
}
catch
{
Expand Down

0 comments on commit 6003755

Please sign in to comment.