mirror of
https://github.com/Readarr/Readarr
synced 2026-05-08 12:42:51 +02:00
RootFolderService adds FreeSpace, UnmappedFolders to Get(int id)
This commit is contained in:
parent
317586c102
commit
9370edb48c
1 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
using System.Diagnostics;
|
using System.Linq;
|
||||||
using System.Linq;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
@ -155,7 +154,10 @@ public Dictionary<string, long> FreeSpaceOnDrives()
|
||||||
|
|
||||||
public RootFolder Get(int id)
|
public RootFolder Get(int id)
|
||||||
{
|
{
|
||||||
return _rootFolderRepository.Get(id);
|
var rootFolder = _rootFolderRepository.Get(id);
|
||||||
|
rootFolder.FreeSpace = _diskProvider.GetAvilableSpace(rootFolder.Path);
|
||||||
|
rootFolder.UnmappedFolders = GetUnmappedFolders(rootFolder.Path);
|
||||||
|
return rootFolder;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue