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