aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/User.cs
diff options
context:
space:
mode:
authorTechywarrior <techywarrior@gmail.com>2013-04-03 23:17:27 -0700
committerTechywarrior <techywarrior@gmail.com>2013-04-03 23:17:27 -0700
commit5489b98a45353551a0a97e437336590414ea9d9d (patch)
treec07bbd6ab4b5c811d3f835a044fd45869f77573c /MediaBrowser.Controller/Entities/User.cs
parent378237230f34b1eeaa1d81f356ba916e23c4da8c (diff)
parente8d03d49f21f2a17cc22204899eb10a4beb600bb (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Controller/Entities/User.cs')
-rw-r--r--MediaBrowser.Controller/Entities/User.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/MediaBrowser.Controller/Entities/User.cs b/MediaBrowser.Controller/Entities/User.cs
index 849b9cfee..690f97605 100644
--- a/MediaBrowser.Controller/Entities/User.cs
+++ b/MediaBrowser.Controller/Entities/User.cs
@@ -397,31 +397,6 @@ namespace MediaBrowser.Controller.Entities
{
_rootFolderPath = null;
RootFolder = null;
-
- if (config.UseCustomLibrary)
- {
- CopyDefaultLibraryPathsIfNeeded();
- }
- }
- }
-
- /// <summary>
- /// Copies the default library paths if needed.
- /// </summary>
- private void CopyDefaultLibraryPathsIfNeeded()
- {
- var userPath = RootFolderPath;
-
- var defaultPath = ConfigurationManager.ApplicationPaths.DefaultUserViewsPath;
-
- if (userPath.Equals(defaultPath, StringComparison.OrdinalIgnoreCase))
- {
- return;
- }
-
- if (!Directory.EnumerateFileSystemEntries(userPath, "*.lnk", SearchOption.AllDirectories).Any())
- {
- FileSystem.CopyAll(defaultPath, userPath);
}
}
}