diff --git a/SabreTools.Library/DatFiles/DatFile.cs b/SabreTools.Library/DatFiles/DatFile.cs index 1ad37fba..3ae2d273 100644 --- a/SabreTools.Library/DatFiles/DatFile.cs +++ b/SabreTools.Library/DatFiles/DatFile.cs @@ -3336,6 +3336,9 @@ namespace SabreTools.Library.DatFiles Description = Name + (bare ? "" : " (" + Date + ")"); } + // Clean the temp directory path + tempDir = (String.IsNullOrWhiteSpace(tempDir) ? Path.GetTempPath() : tempDir); + // Process the input if (Directory.Exists(basePath)) { diff --git a/SabreTools/SabreTools.Inits.cs b/SabreTools/SabreTools.Inits.cs index f4024fdf..96abd15f 100644 --- a/SabreTools/SabreTools.Inits.cs +++ b/SabreTools/SabreTools.Inits.cs @@ -124,9 +124,6 @@ namespace SabreTools Type = (superdat ? "SuperDAT" : ""), }; - // Clean the temp directory - tempDir = (String.IsNullOrWhiteSpace(tempDir) ? Path.GetTempPath() : tempDir); - // For each input directory, create a DAT foreach (string path in inputs) {