diff --git a/Wabbajack.Paths.IO/AbsolutePathExtensions.cs b/Wabbajack.Paths.IO/AbsolutePathExtensions.cs index e5c80b0f..5ef71f1d 100644 --- a/Wabbajack.Paths.IO/AbsolutePathExtensions.cs +++ b/Wabbajack.Paths.IO/AbsolutePathExtensions.cs @@ -178,6 +178,8 @@ public static class AbsolutePathExtensions public static void CreateDirectory(this AbsolutePath path) { + if (path.Depth > 1 && !path.Parent.DirectoryExists()) + path.Parent.CreateDirectory(); Directory.CreateDirectory(ToNativePath(path)); }