Handle log zip path in information extraction

This commit is contained in:
Matt Nadareski
2025-10-19 11:55:37 -04:00
parent 7aba0d1c9c
commit ff0c742dee
2 changed files with 8 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
- Fix long translated strings
- Allow placeholder files to be used in Check
- Make .img not required for DIC outputs
- Handle log zip path in information extraction
### 3.5.0 (2025-10-10)

View File

@@ -55,6 +55,13 @@ namespace MPF.Frontend.Tools
var outputDirectory = Path.GetDirectoryName(outputPath);
string outputFilename = Path.GetFileName(outputPath);
// If a standard log zip was provided, replace the suffix with ".tmp" for easier processing
if (outputFilename.EndsWith("_logs.zip", StringComparison.OrdinalIgnoreCase))
{
int zipSuffixIndex = outputFilename.LastIndexOf("_logs.zip", StringComparison.OrdinalIgnoreCase);
outputFilename = outputFilename.Substring(0, zipSuffixIndex) + ".tmp";
}
// Check that all of the relevant files are there
List<string> missingFiles = processor.FoundAllFiles(mediaType, outputDirectory, outputFilename);
if (missingFiles.Count > 0)