aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryStructureController.cs
diff options
context:
space:
mode:
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);
}