diff --git a/DiscordChatExporter.Cli.Tests/Utils/TempDir.cs b/DiscordChatExporter.Cli.Tests/Utils/TempDir.cs index b65888e9..4cae7ff0 100644 --- a/DiscordChatExporter.Cli.Tests/Utils/TempDir.cs +++ b/DiscordChatExporter.Cli.Tests/Utils/TempDir.cs @@ -1,7 +1,6 @@ using System; using System.IO; using System.Reflection; -using PathEx = System.IO.Path; namespace DiscordChatExporter.Cli.Tests.Utils; @@ -23,9 +22,9 @@ internal partial class TempDir { public static TempDir Create() { - var dirPath = PathEx.Combine( - PathEx.GetDirectoryName(Assembly.GetExecutingAssembly().Location) - ?? Directory.GetCurrentDirectory(), + var dirPath = System.IO.Path.Combine( + System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + ?? Directory.GetCurrentDirectory(), "Temp", Guid.NewGuid().ToString() ); diff --git a/DiscordChatExporter.Cli.Tests/Utils/TempFile.cs b/DiscordChatExporter.Cli.Tests/Utils/TempFile.cs index e42ccbe8..1c6e79b3 100644 --- a/DiscordChatExporter.Cli.Tests/Utils/TempFile.cs +++ b/DiscordChatExporter.Cli.Tests/Utils/TempFile.cs @@ -1,7 +1,6 @@ using System; using System.IO; using System.Reflection; -using PathEx = System.IO.Path; namespace DiscordChatExporter.Cli.Tests.Utils; @@ -23,15 +22,15 @@ internal partial class TempFile { public static TempFile Create() { - var dirPath = PathEx.Combine( - PathEx.GetDirectoryName(Assembly.GetExecutingAssembly().Location) - ?? Directory.GetCurrentDirectory(), + var dirPath = System.IO.Path.Combine( + System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + ?? Directory.GetCurrentDirectory(), "Temp" ); Directory.CreateDirectory(dirPath); - var filePath = PathEx.Combine(dirPath, Guid.NewGuid() + ".tmp"); + var filePath = System.IO.Path.Combine(dirPath, Guid.NewGuid() + ".tmp"); return new TempFile(filePath); }