mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-05 21:33:02 +02:00
Merge pull request #10219 from Bond-009/zfs
This commit is contained in:
commit
1514b5d052
|
@ -89,6 +89,10 @@ namespace Emby.Server.Implementations.Library
|
||||||
// bts sync files
|
// bts sync files
|
||||||
"**/*.bts",
|
"**/*.bts",
|
||||||
"**/*.sync",
|
"**/*.sync",
|
||||||
|
|
||||||
|
// zfs
|
||||||
|
"**/.zfs/**",
|
||||||
|
"**/.zfs"
|
||||||
};
|
};
|
||||||
|
|
||||||
private static readonly GlobOptions _globOptions = new GlobOptions
|
private static readonly GlobOptions _globOptions = new GlobOptions
|
||||||
|
|
|
@ -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./epic.flac", false)]
|
||||||
[InlineData("/media/music/Foo B.A.R", false)]
|
[InlineData("/media/music/Foo B.A.R", 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)
|
public void PathIgnored(string path, bool expected)
|
||||||
{
|
{
|
||||||
Assert.Equal(expected, IgnorePatterns.ShouldIgnore(path));
|
Assert.Equal(expected, IgnorePatterns.ShouldIgnore(path));
|
||||||
|
|
Loading…
Reference in a new issue