mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Moved FreeDiskSpace to DiskProvider.
This commit is contained in:
parent
401b3b13e2
commit
95cdc4b78c
6 changed files with 59 additions and 29 deletions
|
@ -92,7 +92,7 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
foreach (var rootDir in rootDirs)
|
||||
{
|
||||
rootDir.FreeSpace = new DirectoryInfo(rootDir.Path).FreeDiskSpace();
|
||||
rootDir.FreeSpace = _diskProvider.FreeDiskSpace(new DirectoryInfo(rootDir.Path));
|
||||
if (rootDir.FreeSpace > maxSize)
|
||||
{
|
||||
maxPath = rootDir.Path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue