From 47624ef704246e2951e52c8e8443eee408270af6 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 26 Mar 2014 16:49:03 -0700 Subject: [PATCH] Remove special folder regardless of location --- src/NzbDrone.Core/RootFolders/RootFolderService.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Core/RootFolders/RootFolderService.cs b/src/NzbDrone.Core/RootFolders/RootFolderService.cs index 7d47c01b4..ac6437ef7 100644 --- a/src/NzbDrone.Core/RootFolders/RootFolderService.cs +++ b/src/NzbDrone.Core/RootFolders/RootFolderService.cs @@ -132,11 +132,8 @@ namespace NzbDrone.Core.RootFolders results.Add(new UnmappedFolder { Name = di.Name, Path = di.FullName }); } - if (Path.GetPathRoot(path).Equals(path, StringComparison.InvariantCultureIgnoreCase)) - { - var setToRemove = SpecialFolders; - results.RemoveAll(x => setToRemove.Contains(new DirectoryInfo(x.Path.ToLowerInvariant()).Name)); - } + var setToRemove = SpecialFolders; + results.RemoveAll(x => setToRemove.Contains(new DirectoryInfo(x.Path.ToLowerInvariant()).Name)); Logger.Debug("{0} unmapped folders detected.", results.Count); return results;