Browse Source

Backport pull request #15054 from jellyfin/release-10.11.z

Speed-up trickplay migration

Original-merge: ca830d5be7c7a173f91ae7521d43cb47484718f1

Merged-by: crobibero <cody@robibe.ro>

Backported-by: Bond_009 <bond.009@outlook.com>
Shadowghost 1 week ago
parent
commit
cee16d47cb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Emby.Server.Implementations/IO/ManagedFileSystem.cs

+ 4 - 0
Emby.Server.Implementations/IO/ManagedFileSystem.cs

@@ -152,6 +152,10 @@ namespace Emby.Server.Implementations.IO
         /// <inheritdoc />
         public void MoveDirectory(string source, string destination)
         {
+            // Make sure parent directory of target exists
+            var parent = Directory.GetParent(destination);
+            parent?.Create();
+
             try
             {
                 Directory.Move(source, destination);