Skip to content

Commit

Permalink
Fix exception dump in InstallFMSevenZip
Browse files Browse the repository at this point in the history
Check for if file is a directory before trying to set its attributes
  • Loading branch information
FenPhoenix committed Sep 22, 2019
1 parent f550e03 commit dd8191e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion AngelLoader/InstallAndPlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,10 @@ await Task.Run(() =>
extractor.FileExtractionFinished += (sender, e) =>
{
// We're extracting all the files, so we don't need to do an index check here.
SetFileAttributesFromSevenZipEntry(e.FileInfo, Path.Combine(fmInstalledPath, e.FileInfo.FileName));
if (!e.FileInfo.IsDirectory)
{
SetFileAttributesFromSevenZipEntry(e.FileInfo, Path.Combine(fmInstalledPath, e.FileInfo.FileName));
}

if (ExtractCts.Token.IsCancellationRequested)
{
Expand Down

0 comments on commit dd8191e

Please sign in to comment.