mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4906] [MERGED] Ignore inaccessible files & folders during library scans #10327
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?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4906
Author: @Spacetech
Created: 1/1/2021
Status: ✅ Merged
Merged: 1/8/2021
Merged by: @Bond-009
Base:
master← Head:library_scan_ignore_inaccessible📝 Commits (1)
1fdeac0Ignore inaccessible files during library scans📊 Changes
2 files changed (+22 additions, -17 deletions)
View changed files
📝
Emby.Server.Implementations/IO/ManagedFileSystem.cs(+21 -16)📝
Emby.Server.Implementations/Library/Resolvers/PlaylistResolver.cs(+1 -1)📄 Description
Ignore inaccessible files & folders during library scans.
Changes
Library scans enumerate many files and folders. If a single file or folder is inaccessible due to permission issues during one of those enumeration calls, the whole enumeration call would fail. For example if you have a single TV show or movie folder that is inaccessible, the library scan would fail to enumerate any other shows / movies within that same parent folder.
Examples of those errors:
.NET 5 introduces a new EnumerationOptions class with an
IgnoreInaccessibleproperty that allows us to choose how an enumeration should handle files & folders that are inaccessible. Now the library scan will ignore them.Note:
IgnoreInaccessibledefaults totrueso we don't really need to specify it. But I think including it in the code is good practice to ensure future contributors know this behavior is occurring.Issues
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.