aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Configuration/ConfigurationHelper.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-29 09:12:29 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-29 09:12:29 -0500
commit3488cfecbd54eaaf917d853664f68cac84d472e9 (patch)
treea3f05e3f05e0441ae775b544d1b983a93ea49887 /MediaBrowser.Common/Configuration/ConfigurationHelper.cs
parente19766b1b7e4735e18ebb0e997579f7671cc267c (diff)
make lazy loaded paths more nimble
Diffstat (limited to 'MediaBrowser.Common/Configuration/ConfigurationHelper.cs')
-rw-r--r--MediaBrowser.Common/Configuration/ConfigurationHelper.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Configuration/ConfigurationHelper.cs b/MediaBrowser.Common/Configuration/ConfigurationHelper.cs
index 1f86c5c02..64c2e87de 100644
--- a/MediaBrowser.Common/Configuration/ConfigurationHelper.cs
+++ b/MediaBrowser.Common/Configuration/ConfigurationHelper.cs
@@ -42,6 +42,8 @@ namespace MediaBrowser.Common.Configuration
// If the file didn't exist before, or if something has changed, re-save
if (buffer == null || !buffer.SequenceEqual(newBytes))
{
+ Directory.CreateDirectory(Path.GetDirectoryName(path));
+
// Save it after load in case we got new items
File.WriteAllBytes(path, newBytes);
}