aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-04 00:50:06 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-04 00:50:06 -0400
commitd889cf1f5781e5d9b446a280ce048e48a74d2aaa (patch)
tree6f9bd9fc724c59f12e2ef8e88ec55b2cdee83370
parent953bf75275edb2924abb1628015e12379c30c1b7 (diff)
remove library copying when setting up a custom library. we'll add a separate button to do it later.
-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);
}
}
}