Sfoglia il codice sorgente

Speed-up trickplay migration (#15054)

Tim Eisele 1 mese fa
parent
commit
ca830d5be7
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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);