From 9370edb48cd584025fc887f8a350b3bb7c2c867d Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 26 Aug 2013 00:27:31 -0700 Subject: [PATCH] RootFolderService adds FreeSpace, UnmappedFolders to `Get(int id)` --- NzbDrone.Core/RootFolders/RootFolderService.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Core/RootFolders/RootFolderService.cs b/NzbDrone.Core/RootFolders/RootFolderService.cs index f85a371f6..00e1a9cf0 100644 --- a/NzbDrone.Core/RootFolders/RootFolderService.cs +++ b/NzbDrone.Core/RootFolders/RootFolderService.cs @@ -1,5 +1,4 @@ -using System.Diagnostics; -using System.Linq; +using System.Linq; using System; using System.Collections.Generic; using System.IO; @@ -155,7 +154,10 @@ namespace NzbDrone.Core.RootFolders 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; } } } \ No newline at end of file