diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-04-26 16:02:09 -0400 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2020-04-26 16:03:58 -0400 |
| commit | a3d048a0d9806759683fa417edd57c2b0170529c (patch) | |
| tree | cbe6ec323d939075c0a44cc8893ac8e2b411b4b1 /Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs | |
| parent | 21a6c2e1e266ea9d164b31aa492e53ec3d0e068e (diff) | |
Merge pull request #2990 from mark-monteiro/create-missing-foldersv10.5.5
Create Missing Data Folders
(cherry picked from commit 00d8983d7cec0594efac8d85a927dba3c3391bdf)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs | 4 |
1 files changed, 4 insertions, 0 deletions
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 /// <summary> /// Updates the metadata path. /// </summary> + /// <exception cref="UnauthorizedAccessException">If the directory does not exist, and the caller does not have the required permission to create it.</exception> + /// <exception cref="NotSupportedException">If there is a custom path transcoding path specified, but it is invalid.</exception> + /// <exception cref="IOException">If the directory does not exist, and it also could not be created.</exception> 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); } /// <summary> |
