소스 검색

Speed-up trickplay migration (#15054)

Tim Eisele 1 개월 전
부모
커밋
ca830d5be7
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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);