The Free Software Media System - Server Backend & API
Ignore .zfs folder
Bond_009cc15ea7f65da
diff --git a/Emby.Server.Implementations/Library/IgnorePatterns.cs b/Emby.Server.Implementations/Library/IgnorePatterns.csindex 5384c04b3b..cf6fc18456 100644--- a/Emby.Server.Implementations/Library/IgnorePatterns.cs+++ b/Emby.Server.Implementations/Library/IgnorePatterns.cs@@ -89,6 +89,10 @@ namespace Emby.Server.Implementations.Library// bts sync files"**/*.bts","**/*.sync",++ // zfs+ "**/.zfs/**",+ "**/.zfs"};private static readonly GlobOptions _globOptions = new GlobOptionsdiff --git a/tests/Jellyfin.Server.Implementations.Tests/Library/IgnorePatternsTests.cs b/tests/Jellyfin.Server.Implementations.Tests/Library/IgnorePatternsTests.csindex 09eb223288..07061cfc77 100644--- a/tests/Jellyfin.Server.Implementations.Tests/Library/IgnorePatternsTests.cs+++ b/tests/Jellyfin.Server.Implementations.Tests/Library/IgnorePatternsTests.cs@@ -31,6 +31,7 @@ namespace Jellyfin.Server.Implementations.Tests.Library[InlineData("/media/music/Foo B.A.R./epic.flac", false)][InlineData("/media/music/Foo B.A.R", false)][InlineData("/media/music/Foo B.A.R.", false)]+ [InlineData("/movies/.zfs/snapshot/AutoM-2023-09", true)]public void PathIgnored(string path, bool expected){Assert.Equal(expected, IgnorePatterns.ShouldIgnore(path));