aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryStructureController.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-09-06 08:38:43 +0200
committerShadowghost <Ghost_of_Stone@web.de>2026-09-06 08:38:43 +0200
commit344a6dcd2c39c6a0a1f34b888f260e297781a2c5 (patch)
tree56e566a1c469d4ed7c0ff8acdff215863baf1093 /Jellyfin.Api/Controllers/LibraryStructureController.cs
parentf8470630be0f3fa7b8052ebd822f23531d30da2f (diff)
Apply review suggestions
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryStructureController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LibraryStructureController.cs8
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
{