From f8d97cac7dd5c5fb67d48e276da2bbaa261d5a8b Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Tue, 1 Nov 2016 20:18:30 +0100 Subject: [PATCH] Fixed: FileBrowser not displaying drive letters on Windows. fixes #1535 --- src/NzbDrone.Common/Disk/FileSystemLookupService.cs | 4 ++-- src/NzbDrone.Common/Disk/IMount.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Common/Disk/FileSystemLookupService.cs b/src/NzbDrone.Common/Disk/FileSystemLookupService.cs index f15d1c3e3..b262c9918 100644 --- a/src/NzbDrone.Common/Disk/FileSystemLookupService.cs +++ b/src/NzbDrone.Common/Disk/FileSystemLookupService.cs @@ -113,7 +113,7 @@ namespace NzbDrone.Common.Disk .Select(d => new FileSystemModel { Type = FileSystemEntityType.Drive, - Name = d.VolumeLabel, + Name = d.VolumeName, Path = d.RootDirectory, LastModified = null }) @@ -163,7 +163,7 @@ namespace NzbDrone.Common.Disk return path; } - + private string GetParent(string path) { var di = new DirectoryInfo(path); diff --git a/src/NzbDrone.Common/Disk/IMount.cs b/src/NzbDrone.Common/Disk/IMount.cs index c3c1d71a4..285673d69 100644 --- a/src/NzbDrone.Common/Disk/IMount.cs +++ b/src/NzbDrone.Common/Disk/IMount.cs @@ -13,5 +13,6 @@ namespace NzbDrone.Common.Disk long TotalFreeSpace { get; } long TotalSize { get; } string VolumeLabel { get; } + string VolumeName { get; } } }