Fix MSCab corner case of trailing periods

This commit is contained in:
Matt Nadareski
2020-11-01 14:06:46 -08:00
parent 68b1ec7b3f
commit 50db0044b0

View File

@@ -37,7 +37,8 @@ namespace BurnOutSharp.FileType
// If an individual entry fails
try
{
string tempFile = Path.Combine(tempPath, sub.Filename);
// The trim here is for some very odd and stubborn files
string tempFile = Path.Combine(tempPath, sub.Filename.TrimEnd('.'));
sub.ExtractTo(tempFile);
}
catch { }