mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
Overzealous ignoring of directories during library scan #8057
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thatsatoffee on GitHub (Jan 21, 2026).
Description of the bug
After upgrading to 10.11.6, my library at a location like
/home/jellyfin/.media/video/moviesis no longer scanned.Reproduction steps
/path/to/.hidden/library/location)What is the current bug behavior?
No files in the library are indexed; the directory is ignored entirely.
What is the expected correct behavior?
The library should be scanned at all points where there is no
.ignorefile.Jellyfin Server version
10.11.6
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.11.6
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
I believe to have located the source of this behaviour in PR #16029.
My libraries are in locations like this:
/home/jellyfin/.media/video/movies. According to this comment, files in locations like/path/to/.hiddenlibrarywere not scanned after some commit; however, my setup does not have the hidden directory at the end but somewhere in the middle (/path/to/.hidden/library/location) and was scanned before 11.10.6.This is probably caused by a newly added ignore pattern:
c9b7c5bb56/Emby.Server.Implementations/Library/IgnorePatterns.cs (L86)This is not documented behaviour in any case; per the documentation, only
.ignorefiles should decide which directories and/or files are ignored during scans.While reviewing
IgnorePatterns.cs, I noticed a lot of sensible exclusions. I believe, however, that ignoring all hidden unix directories does not serve the same goal as ignoring, say,**/.zfs(and**/.zfs/**) specifically.I also propose adding warnings to the log if the library path itself (rather than files within it) already matches an ignore mechanism (directories such as those in
IngorePatterns.csor due to having an empty.ignorefile at the root).@thatsatoffee commented on GitHub (Jan 21, 2026):
Also see
11d5410dbb, where the ignoring of dotdirectories was explicitly removed.