aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-08-27 16:08:29 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-08-27 16:08:29 -0400
commite51a38a93d33fbfab7226b212d9390a5d45be503 (patch)
treefb6ab9a8d9c03d10d44d82da0b4cc66671b76724 /MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
parent390409195f0d1f28605a201fb0c7334c66429fe1 (diff)
fixes #427 - Handle mac .DS_Store
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs7
1 files changed, 7 insertions, 0 deletions
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
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
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)
{