diff --git a/Adaptation/.vscode/tasks.json b/Adaptation/.vscode/tasks.json index bd83b89..25d7204 100644 --- a/Adaptation/.vscode/tasks.json +++ b/Adaptation/.vscode/tasks.json @@ -76,12 +76,6 @@ ], "problemMatcher": "$msCompile" }, - { - "label": "File-Folder-Helper AOT s M .Kanbn Tasks", - "type": "shell", - "command": "L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net8.0/win-x64/publish/File-Folder-Helper.exe s M T:/MET08RESIHGCV/06_SourceCode/MET08RESIHGCV/Adaptation -s T:/MET08RESIHGCV/06_SourceCode/MET08RESIHGCV/Adaptation/.kanbn/tasks", - "problemMatcher": [] - }, { "label": "Kanbn Console", "type": "npm", diff --git a/Adaptation/FileHandlers/InterceptIQS/FileRead.cs b/Adaptation/FileHandlers/InterceptIQS/FileRead.cs index d2b15a2..857a890 100644 --- a/Adaptation/FileHandlers/InterceptIQS/FileRead.cs +++ b/Adaptation/FileHandlers/InterceptIQS/FileRead.cs @@ -138,7 +138,12 @@ public class FileRead : Shared.FileRead, IFileRead } } string output = string.Join(",", segments); - File.WriteAllText($"{reportFullPath}.{dateTime.Ticks}.txt", $"{output}{Environment.NewLine}"); + string extension = Path.GetExtension(reportFullPath); + string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(reportFullPath); + string targetFile = Path.Combine(_FileConnectorConfiguration.TargetFileLocation, $"{fileNameWithoutExtension}-{dateTime.Ticks}{extension}"); + if (!Directory.Exists(_FileConnectorConfiguration.TargetFileLocation)) + _ = Directory.CreateDirectory(_FileConnectorConfiguration.TargetFileLocation); + File.WriteAllText(targetFile, $"{output}{Environment.NewLine}"); } private Tuple> GetExtractResult(string reportFullPath, DateTime dateTime) diff --git a/Adaptation/MET08RESIHGCV.Tests.csproj b/Adaptation/MET08RESIHGCV.Tests.csproj index cc25b6f..1dd6a09 100644 --- a/Adaptation/MET08RESIHGCV.Tests.csproj +++ b/Adaptation/MET08RESIHGCV.Tests.csproj @@ -45,10 +45,10 @@ NU1701 NU1701 - + - + @@ -57,15 +57,15 @@ - - + + NU1701 - - + +