diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-09-04 19:28:59 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-09-04 19:28:59 +0200 |
| commit | 46dd7d8e99ff7167d2d175878896294ed823927f (patch) | |
| tree | b7073a3dbbe5c4a367b44d58537086b38c1e9127 /Jellyfin.Api/Controllers/LibraryStructureController.cs | |
| parent | 0d9c9c9eccf2f547f824ad47f2038c378930fdd2 (diff) | |
Invalidate the singleton DirectoryService cache on filesystem changes
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryStructureController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/LibraryStructureController.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryStructureController.cs b/Jellyfin.Api/Controllers/LibraryStructureController.cs index 83684f1b91..e4833c77dd 100644 --- a/Jellyfin.Api/Controllers/LibraryStructureController.cs +++ b/Jellyfin.Api/Controllers/LibraryStructureController.cs @@ -189,8 +189,7 @@ public class LibraryStructureController : BaseJellyfinApiController Directory.Move(currentPath, newPath); - // The validation below would otherwise resolve the libraries root from a listing taken - // before the folder was moved. + // The injected service is a singleton, so its listings of both paths are now stale. _directoryService.Invalidate(currentPath); _directoryService.Invalidate(newPath); } |
