prevents filename clashes
This commit is contained in:
parent
017c71a6e8
commit
8e084d6ca0
|
@ -178,7 +178,9 @@ namespace CodexTests
|
|||
{
|
||||
var outputPath = Path.GetDirectoryName(lifecycle.Log.LogFile.FullFilename);
|
||||
if (outputPath == null) throw new Exception("Logfile path is null");
|
||||
var outputFile = Path.Combine(outputPath, attr.OutputFilename);
|
||||
var filename = Path.GetFileNameWithoutExtension(lifecycle.Log.LogFile.FullFilename);
|
||||
if (string.IsNullOrEmpty(filename)) throw new Exception("Logfile name is null or empty");
|
||||
var outputFile = Path.Combine(outputPath, filename + "_" + attr.OutputFilename);
|
||||
if (!outputFile.EndsWith(".owts")) outputFile += ".owts";
|
||||
return outputFile;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue