diff --git a/MediaBrowser.Controller/Entities/User.cs b/MediaBrowser.Controller/Entities/User.cs
index 690f976052..954dfb05f1 100644
--- a/MediaBrowser.Controller/Entities/User.cs
+++ b/MediaBrowser.Controller/Entities/User.cs
@@ -125,7 +125,7 @@ namespace MediaBrowser.Controller.Entities
{
get
{
- LazyInitializer.EnsureInitialized(ref _rootFolder, ref _userRootFolderInitialized, ref _userRootFolderSyncLock, () => (UserRootFolder)LibraryManager.ResolvePath(RootFolderPath));
+ LazyInitializer.EnsureInitialized(ref _rootFolder, ref _userRootFolderInitialized, ref _userRootFolderSyncLock, () => LibraryManager.GetUserRootFolder(RootFolderPath));
return _rootFolder;
}
private set
@@ -218,22 +218,6 @@ namespace MediaBrowser.Controller.Entities
await RootFolder.ValidateChildren(progress, cancellationToken).ConfigureAwait(false);
}
- ///
- /// Validates only the collection folders for a User and goes no further
- ///
- /// The cancellation token.
- /// The progress.
- /// Task.
- public async Task ValidateCollectionFolders(IProgress progress, CancellationToken cancellationToken)
- {
- Logger.Info("Validating collection folders for {0}", Name);
- await RootFolder.RefreshMetadata(cancellationToken).ConfigureAwait(false);
-
- cancellationToken.ThrowIfCancellationRequested();
-
- await RootFolder.ValidateChildren(progress, cancellationToken, recursive: false).ConfigureAwait(false);
- }
-
///
/// Renames the user.
///
diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs
index da2f46abbd..36d39d5304 100644
--- a/MediaBrowser.Controller/Library/ILibraryManager.cs
+++ b/MediaBrowser.Controller/Library/ILibraryManager.cs
@@ -163,5 +163,12 @@ namespace MediaBrowser.Controller.Library
///
/// The proper instance to the item
BaseItem GetOrAddByReferenceItem(BaseItem item);
+
+ ///
+ /// Gets the user root folder.
+ ///
+ /// The user root path.
+ /// UserRootFolder.
+ UserRootFolder GetUserRootFolder(string userRootPath);
}
}
\ No newline at end of file