Merge pull request #6618 from crobibero/zip-dir

pull/6622/head
Claus Vium 3 years ago committed by GitHub
commit 60f3d7ca6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,6 +45,7 @@ namespace Emby.Server.Implementations.Archiving
options.Overwrite = true; options.Overwrite = true;
} }
Directory.CreateDirectory(targetPath);
reader.WriteAllToDirectory(targetPath, options); reader.WriteAllToDirectory(targetPath, options);
} }
@ -58,6 +59,7 @@ namespace Emby.Server.Implementations.Archiving
Overwrite = overwriteExistingFiles Overwrite = overwriteExistingFiles
}; };
Directory.CreateDirectory(targetPath);
reader.WriteAllToDirectory(targetPath, options); reader.WriteAllToDirectory(targetPath, options);
} }
@ -71,6 +73,7 @@ namespace Emby.Server.Implementations.Archiving
Overwrite = overwriteExistingFiles Overwrite = overwriteExistingFiles
}; };
Directory.CreateDirectory(targetPath);
reader.WriteAllToDirectory(targetPath, options); reader.WriteAllToDirectory(targetPath, options);
} }
@ -120,6 +123,7 @@ namespace Emby.Server.Implementations.Archiving
Overwrite = overwriteExistingFiles Overwrite = overwriteExistingFiles
}; };
Directory.CreateDirectory(targetPath);
reader.WriteAllToDirectory(targetPath, options); reader.WriteAllToDirectory(targetPath, options);
} }
@ -151,6 +155,7 @@ namespace Emby.Server.Implementations.Archiving
Overwrite = overwriteExistingFiles Overwrite = overwriteExistingFiles
}; };
Directory.CreateDirectory(targetPath);
reader.WriteAllToDirectory(targetPath, options); reader.WriteAllToDirectory(targetPath, options);
} }
} }

Loading…
Cancel
Save