소스 검색

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;
             }