Skip to content

Commit

Permalink
Render temp config files in same dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Equinox- committed Feb 21, 2024
1 parent 6de4c12 commit 61044ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meds.Watchdog/Utils/FileUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static void WriteAtomic(string target, object obj, XmlSerializer serializ
var path = Path.GetDirectoryName(target);
if (path != null && !Directory.Exists(path))
Directory.CreateDirectory(path);
var temp = Path.GetTempFileName();
var temp = Path.Combine(path ?? "", Path.GetFileName(target) + ".tmp");
try
{
using (var stream = File.Create(temp))
Expand Down

0 comments on commit 61044ab

Please sign in to comment.