Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TBirdSoars committed Dec 19, 2021
1 parent 6304586 commit 8a3d359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ private static void ExtractArchive(string src, string dest)
{
try
{
if (File.Exists(src))
if (File.Exists(src) && Directory.Exists(dest))
{
using (SevenZipArchive sevenZipArchive = SevenZipArchive.Open(src))
using (IReader reader = sevenZipArchive.ExtractAllEntries())
Expand All @@ -267,7 +267,7 @@ private static void ExtractArchive(string src, string dest)
}
else
{
Console.WriteLine($"ExtractArchive Error: Download file '{src}' not found in current directory.");
Console.WriteLine($"ExtractArchive Error: '{src}' or '{dest}' does not exist.");
}
}
catch (Exception ex)
Expand Down

0 comments on commit 8a3d359

Please sign in to comment.