Fix collections not being created (#11385)

pull/11481/head
Rob Howell 1 month ago
parent 34a8cc203a
commit 638a2142db

@ -336,7 +336,7 @@ namespace MediaBrowser.Controller.Entities
private static bool IsLibraryFolderAccessible(IDirectoryService directoryService, BaseItem item)
{
// For top parents i.e. Library folders, skip the validation if it's empty or inaccessible
if (item.IsTopParent && !directoryService.IsAccessible(item.ContainingFolderPath))
if (!item.IsTopParent && !directoryService.IsAccessible(item.ContainingFolderPath))
{
Logger.LogWarning("Library folder {LibraryFolderPath} is inaccessible or empty, skipping", item.ContainingFolderPath);
return false;

Loading…
Cancel
Save