1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed regression in suppressWarning.

This commit is contained in:
Taloth Saldono 2017-08-10 19:01:22 +02:00
parent 0e85e39815
commit 6bfb790eb8

View File

@ -35,12 +35,13 @@ public DiskSpaceService(ISeriesService seriesService, IConfigService configServi
public List<DiskSpace> GetFreeSpace()
{
var rootPaths = new List<string>();
rootPaths.AddRange(GetSeriesRootPaths());
rootPaths.AddRange(GetDroneFactoryRootPaths());
rootPaths.AddRange(GetFixedDisksRootPaths());
var importantRootFolders = GetSeriesRootPaths().Concat(GetDroneFactoryRootPaths()).Distinct().ToList();
return GetDiskSpace(rootPaths.Distinct()).ToList();
var optionalRootFolders = GetFixedDisksRootPaths().Except(importantRootFolders).Distinct().ToList();
var diskSpace = GetDiskSpace(importantRootFolders).Concat(GetDiskSpace(optionalRootFolders, true)).ToList();
return diskSpace;
}
private IEnumerable<string> GetSeriesRootPaths()