aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Configuration/XML
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Configuration/XML')
-rw-r--r--OpenSim/Framework/Configuration/XML/XmlConfiguration.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs b/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs
index 72faed6..ffb24ff 100644
--- a/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs
+++ b/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs
@@ -31,6 +31,7 @@ using System.Xml;
31 31
32using OpenSim.Framework.Interfaces; 32using OpenSim.Framework.Interfaces;
33using OpenSim.Framework.Configuration.Interfaces; 33using OpenSim.Framework.Configuration.Interfaces;
34using OpenSim.Framework.Utilities;
34 35
35namespace OpenSim.Framework.Configuration 36namespace OpenSim.Framework.Configuration
36{ 37{
@@ -119,6 +120,11 @@ namespace OpenSim.Framework.Configuration
119 120
120 public void Commit() 121 public void Commit()
121 { 122 {
123 if (!Directory.Exists(Util.configDir()))
124 {
125 Directory.CreateDirectory(Util.configDir());
126 }
127
122 doc.Save(fileName); 128 doc.Save(fileName);
123 } 129 }
124 130