Use the correct base path for Check

This commit is contained in:
Matt Nadareski
2025-06-17 17:55:10 -04:00
parent 000e7d88a8
commit cd19a2e4a0
19 changed files with 150 additions and 109 deletions

View File

@@ -481,13 +481,13 @@ namespace MPF.Frontend
resultProgress.Report(ResultEventArgs.Success("Gathering submission information... please wait!"));
// Determine the media type from the processor, if not provided
mediaType ??= _processor.DetermineMediaType(OutputPath);
// Get the output directory and filename separately
var outputDirectory = Path.GetDirectoryName(OutputPath);
var outputFilename = Path.GetFileName(OutputPath);
// Determine the media type from the processor, if not provided
mediaType ??= _processor.DetermineMediaType(outputDirectory, outputFilename);
// Check to make sure that the output had all the correct files
List<string> missingFiles = _processor.FoundAllFiles(mediaType, outputDirectory, outputFilename);
if (missingFiles.Count > 0)