瀏覽代碼

fixes #225 - MediaServer Root Drive

Luke Pulverenti 12 年之前
父節點
當前提交
b67a0dfe03
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs

+ 9 - 0
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;
             }