diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-09-06 08:38:43 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-09-06 08:38:43 +0200 |
| commit | 344a6dcd2c39c6a0a1f34b888f260e297781a2c5 (patch) | |
| tree | 56e566a1c469d4ed7c0ff8acdff215863baf1093 /Jellyfin.Api/Controllers/LibraryStructureController.cs | |
| parent | f8470630be0f3fa7b8052ebd822f23531d30da2f (diff) | |
Apply review suggestions
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryStructureController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/LibraryStructureController.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryStructureController.cs b/Jellyfin.Api/Controllers/LibraryStructureController.cs index e4833c77dd..65bfe25d21 100644 --- a/Jellyfin.Api/Controllers/LibraryStructureController.cs +++ b/Jellyfin.Api/Controllers/LibraryStructureController.cs @@ -183,15 +183,11 @@ public class LibraryStructureController : BaseJellyfinApiController var tempPath = Path.Combine( rootFolderPath, Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture)); - Directory.Move(currentPath, tempPath); + _directoryService.Move(currentPath, tempPath); currentPath = tempPath; } - Directory.Move(currentPath, newPath); - - // The injected service is a singleton, so its listings of both paths are now stale. - _directoryService.Invalidate(currentPath); - _directoryService.Invalidate(newPath); + _directoryService.Move(currentPath, newPath); } finally { |
