aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/User.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Entities/User.cs')
-rw-r--r--MediaBrowser.Controller/Entities/User.cs15
1 files changed, 5 insertions, 10 deletions
diff --git a/MediaBrowser.Controller/Entities/User.cs b/MediaBrowser.Controller/Entities/User.cs
index 65884332a..e991820e3 100644
--- a/MediaBrowser.Controller/Entities/User.cs
+++ b/MediaBrowser.Controller/Entities/User.cs
@@ -28,19 +28,14 @@ namespace MediaBrowser.Controller.Entities
{
get
{
- if (Configuration.UseCustomLibrary)
- {
- var rootFolderPath = GetRootFolderPath(Name);
+ var path = Configuration.UseCustomLibrary ? GetRootFolderPath(Name) : ConfigurationManager.ApplicationPaths.DefaultUserViewsPath;
- if (!Directory.Exists(rootFolderPath))
- {
- Directory.CreateDirectory(rootFolderPath);
- }
-
- return rootFolderPath;
+ if (!Directory.Exists(path))
+ {
+ Directory.CreateDirectory(path);
}
- return ConfigurationManager.ApplicationPaths.DefaultUserViewsPath;
+ return path;
}
}