Fixed regression in suppressWarning.
This commit is contained in:
parent
0e85e39815
commit
6bfb790eb8
|
@ -35,12 +35,13 @@ namespace NzbDrone.Core.DiskSpace
|
||||||
|
|
||||||
public List<DiskSpace> GetFreeSpace()
|
public List<DiskSpace> GetFreeSpace()
|
||||||
{
|
{
|
||||||
var rootPaths = new List<string>();
|
var importantRootFolders = GetSeriesRootPaths().Concat(GetDroneFactoryRootPaths()).Distinct().ToList();
|
||||||
rootPaths.AddRange(GetSeriesRootPaths());
|
|
||||||
rootPaths.AddRange(GetDroneFactoryRootPaths());
|
|
||||||
rootPaths.AddRange(GetFixedDisksRootPaths());
|
|
||||||
|
|
||||||
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()
|
private IEnumerable<string> GetSeriesRootPaths()
|
||||||
|
|
Loading…
Reference in New Issue