From b67a0dfe0355f6071d24fd8c24206d000ecbaf43 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 4 May 2013 11:43:10 -0400 Subject: [PATCH] fixes #225 - MediaServer Root Drive --- .../Library/CoreResolutionIgnoreRule.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs index 3caa9ac88a..a801aef4ee 100644 --- a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs +++ b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs @@ -44,6 +44,15 @@ namespace MediaBrowser.Server.Implementations.Library return false; } + // Drives will sometimes be hidden + if (args.Path.EndsWith(":\\", StringComparison.OrdinalIgnoreCase)) + { + if (new DriveInfo(args.Path).IsReady) + { + return false; + } + } + return true; }