From 02ee8ea83ada7b35f3e4c7e52a3fb37e6df2b490 Mon Sep 17 00:00:00 2001 From: taubenangriff <51975164+taubenangriff@users.noreply.github.com> Date: Fri, 9 Aug 2024 00:19:32 +0200 Subject: [PATCH] Fix filenames without d option --- FileDBReader.csproj | 2 +- src/ToolFunctions.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FileDBReader.csproj b/FileDBReader.csproj index 13c4f43..ad49576 100644 --- a/FileDBReader.csproj +++ b/FileDBReader.csproj @@ -5,7 +5,7 @@ net6.0 FileDBReader.CommandLineHandler AnyCPU;x64 - 3.0.1 + 3.0.3 False enable diff --git a/src/ToolFunctions.cs b/src/ToolFunctions.cs index 61e7553..0f66e6c 100644 --- a/src/ToolFunctions.cs +++ b/src/ToolFunctions.cs @@ -345,7 +345,7 @@ private void FcFileImport(String InputFile, Interpreter? Interpr, bool overwrite { if (!InIsOut) { - InputFile = Path.GetFileNameWithoutExtension(InputFile); + InputFile = Path.GetFileName(InputFile); } var FileNameNew = Path.ChangeExtension(InputFile, ".xml"); @@ -397,7 +397,7 @@ private void FcFileExport(String InputFile, Interpreter? Interpr, bool overwrite try { if (!InIsOut) { - InputFile = Path.GetFileNameWithoutExtension(InputFile); + InputFile = Path.GetFileName(InputFile); } var path = Path.ChangeExtension(InputFile, OutputFileExtension);