From e51a38a93d33fbfab7226b212d9390a5d45be503 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 27 Aug 2013 16:08:29 -0400 Subject: [PATCH] fixes #427 - Handle mac .DS_Store --- .../Library/CoreResolutionIgnoreRule.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs index f6e5af7b5..9166067c3 100644 --- a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs +++ b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs @@ -35,6 +35,13 @@ namespace MediaBrowser.Server.Implementations.Library /// true if XXXX, false otherwise public bool ShouldIgnore(ItemResolveArgs args) { + // Handle mac .DS_Store + // https://github.com/MediaBrowser/MediaBrowser/issues/427 + if (args.Path.IndexOf("._", StringComparison.OrdinalIgnoreCase) == 0) + { + return true; + } + // Ignore hidden files and folders if (args.IsHidden) {