aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryStructureController.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-09-04 19:28:59 +0200
committerShadowghost <Ghost_of_Stone@web.de>2026-09-04 19:28:59 +0200
commit46dd7d8e99ff7167d2d175878896294ed823927f (patch)
treeb7073a3dbbe5c4a367b44d58537086b38c1e9127 /Jellyfin.Api/Controllers/LibraryStructureController.cs
parent0d9c9c9eccf2f547f824ad47f2038c378930fdd2 (diff)
Invalidate the singleton DirectoryService cache on filesystem changes
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryStructureController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LibraryStructureController.cs3
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);
}