|
|
@ -19,10 +19,10 @@ namespace NzbDrone.Core.HealthCheck.Checks
|
|
|
|
public override HealthCheck Check()
|
|
|
|
public override HealthCheck Check()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var missingRootFolders = _seriesService.GetAllSeries()
|
|
|
|
var missingRootFolders = _seriesService.GetAllSeries()
|
|
|
|
.Select(s => _diskProvider.GetParentFolder(s.Path))
|
|
|
|
.Select(s => _diskProvider.GetParentFolder(s.Path))
|
|
|
|
.Distinct()
|
|
|
|
.Distinct()
|
|
|
|
.Where(s => !_diskProvider.FolderExists(s))
|
|
|
|
.Where(s => !_diskProvider.FolderExists(s))
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
|
|
if (missingRootFolders.Any())
|
|
|
|
if (missingRootFolders.Any())
|
|
|
|
{
|
|
|
|
{
|
|
|
|