Skip to content

Commit

Permalink
Fix compress merge failing due to bad file listing including directories
Browse files Browse the repository at this point in the history
  • Loading branch information
bcssov committed Nov 30, 2022
1 parent 80d69cf commit 51023c8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/IronyModManager.IO/Readers/ArchiveFileReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Created : 02-23-2020
//
// Last Modified By : Mario
// Last Modified On : 11-06-2022
// Last Modified On : 11-30-2022
// ***********************************************************************
// <copyright file="ArchiveFileReader.cs" company="Mario">
// Mario
Expand Down Expand Up @@ -97,8 +97,11 @@ public virtual IEnumerable<string> GetFiles(string path)
var files = new List<string>();
foreach (var entry in zip.EntryFileNames)
{
var relativePath = entry.StandardizeDirectorySeparator().Trim(Path.DirectorySeparatorChar);
files.Add(relativePath);
if (!zip[entry].IsDirectory)
{
var relativePath = entry.StandardizeDirectorySeparator().Trim(Path.DirectorySeparatorChar);
files.Add(relativePath);
}
}
return files;
}
Expand Down

0 comments on commit 51023c8

Please sign in to comment.