diff options
| author | Techywarrior <techywarrior@gmail.com> | 2013-04-03 23:17:27 -0700 |
|---|---|---|
| committer | Techywarrior <techywarrior@gmail.com> | 2013-04-03 23:17:27 -0700 |
| commit | 5489b98a45353551a0a97e437336590414ea9d9d (patch) | |
| tree | c07bbd6ab4b5c811d3f835a044fd45869f77573c /MediaBrowser.Controller/Entities/User.cs | |
| parent | 378237230f34b1eeaa1d81f356ba916e23c4da8c (diff) | |
| parent | e8d03d49f21f2a17cc22204899eb10a4beb600bb (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.cs | 25 |
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); } } } |
