mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-07 07:53:05 +00:00
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…
x
Reference in New Issue
Block a user