Skip to content

Commit b4d32c1

Browse files
committed
Ensure settings path exists. See #1841
1 parent 96a3779 commit b4d32c1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Rubberduck.SettingsProvider/XmlPersistanceService.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ public void Save(T toSerialize)
7979
parent.Add(settings);
8080
}
8181
}
82-
82+
83+
if (!Directory.Exists(_rootPath))
84+
{
85+
Directory.CreateDirectory(_rootPath);
86+
}
87+
8388
using (var xml = XmlWriter.Create(FilePath, _outputXmlSettings))
8489
{
8590
doc.WriteTo(xml);

0 commit comments

Comments
 (0)