aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-04 11:43:10 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-04 11:43:10 -0400
commitb67a0dfe0355f6071d24fd8c24206d000ecbaf43 (patch)
tree625200aa046ec427e0f25fc5ce184139682bff85 /MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
parent68bc39fe4e336de592e861126f6d1b4ff9441f9e (diff)
fixes #225 - MediaServer Root Drive
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
index 3caa9ac88..a801aef4e 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;
}