From a3d048a0d9806759683fa417edd57c2b0170529c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 26 Apr 2020 16:02:09 -0400 Subject: Merge pull request #2990 from mark-monteiro/create-missing-folders Create Missing Data Folders (cherry picked from commit 00d8983d7cec0594efac8d85a927dba3c3391bdf) Signed-off-by: Joshua M. Boniface --- .../Configuration/ServerConfigurationManager.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs') diff --git a/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs b/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs index 30b654886..9c9b0c79c 100644 --- a/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs +++ b/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs @@ -67,6 +67,9 @@ namespace Emby.Server.Implementations.Configuration /// /// Updates the metadata path. /// + /// If the directory does not exist, and the caller does not have the required permission to create it. + /// If there is a custom path transcoding path specified, but it is invalid. + /// If the directory does not exist, and it also could not be created. private void UpdateMetadataPath() { if (string.IsNullOrWhiteSpace(Configuration.MetadataPath)) @@ -77,6 +80,7 @@ namespace Emby.Server.Implementations.Configuration { ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath = Configuration.MetadataPath; } + Directory.CreateDirectory(ApplicationPaths.InternalMetadataPath); } /// -- cgit v1.2.3