aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-06-04 13:24:44 -0400
committerEric Reed <ebr@mediabrowser3.com>2013-06-04 13:24:44 -0400
commitc21c678ed9b987f08478d218094cd5b20f7f560e (patch)
tree27f10b0fffd2d3fcf73997d190625efe0b291b0d /MediaBrowser.Server.Implementations/Library/LibraryManager.cs
parent4e5186ef0be7e52041823faf02fc0d157cccfa7d (diff)
parent25cc19a10b13e05f2fa2bd89f9da649bbcd6bd31 (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index f9c8e9a31..8a19a8d3f 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@ -558,6 +558,12 @@ namespace MediaBrowser.Server.Implementations.Library
public AggregateFolder CreateRootFolder()
{
var rootFolderPath = ConfigurationManager.ApplicationPaths.RootFolderPath;
+
+ if (!Directory.Exists(rootFolderPath))
+ {
+ Directory.CreateDirectory(rootFolderPath);
+ }
+
var rootFolder = RetrieveItem(rootFolderPath.GetMBId(typeof(AggregateFolder))) as AggregateFolder ?? (AggregateFolder)ResolvePath(rootFolderPath);
// Add in the plug-in folders