diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-04 11:43:10 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-04 11:43:10 -0400 |
| commit | b67a0dfe0355f6071d24fd8c24206d000ecbaf43 (patch) | |
| tree | 625200aa046ec427e0f25fc5ce184139682bff85 /MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs | |
| parent | 68bc39fe4e336de592e861126f6d1b4ff9441f9e (diff) | |
fixes #225 - MediaServer Root Drive
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs | 9 |
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; } |
