From 4e25ee3314f0646665506c192ec5f51d7b36699d Mon Sep 17 00:00:00 2001 From: lindsaynnw <142308463+lindsaynnw@users.noreply.github.com> Date: Tue, 28 Apr 2026 11:24:13 -0500 Subject: [PATCH] Revert "Fix #1009: ensure directory paths are created correctly" --- src/SMAPI/Framework/SCore.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs index 46ab46c49..eceda4d03 100644 --- a/src/SMAPI/Framework/SCore.cs +++ b/src/SMAPI/Framework/SCore.cs @@ -1944,17 +1944,18 @@ public void LogContentIntegrityIssues() /// Create a directory path if it doesn't exist. /// The directory path. private void VerifyPath(string path) -{ - try - { - Directory.CreateDirectory(path); - } - catch (Exception ex) { - // note: this happens before this.Monitor is initialized - Console.WriteLine($"Couldn't create a path: {path}\n\n{ex.GetLogSummary()}"); + try + { + if (!Directory.Exists(path)) + Directory.CreateDirectory(path); + } + catch (Exception ex) + { + // note: this happens before this.Monitor is initialized + Console.WriteLine($"Couldn't create a path: {path}\n\n{ex.GetLogSummary()}"); + } } -} /// Load and hook up the given mods. /// The mods to load.