The Free Software Media System - Server Backend & API
Create directory before checking for size (#13962)
JPVenson2ea7af777b99
diff --git a/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs b/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.csindex 635644179f..e351160c16 100644--- a/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs+++ b/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs@@ -72,6 +72,11 @@ public static class StorageHelperprivate static void TestDataDirectorySize(string path, ILogger logger, long threshold = -1){logger.LogDebug("Check path {TestPath} for storage capacity", path);+ if (!Directory.Exists(path))+ {+ Directory.CreateDirectory(path);+ }+var drive = new DriveInfo(path);if (threshold != -1 && drive.AvailableFreeSpace < threshold){