The Free Software Media System - Server Backend & API
Fix storage lookup for Windows
theguymadmax314004bc1939
diff --git a/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs b/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.csindex 13c7895f83..0989ce84ba 100644--- a/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs+++ b/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs@@ -87,8 +87,9 @@ public static class StorageHelper/// </summary>private static string ResolvePath(string path){- var parts = path.Split(Path.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries);- var current = Path.DirectorySeparatorChar.ToString();+ var root = Path.GetPathRoot(path) ?? Path.DirectorySeparatorChar.ToString();+ var parts = path.Substring(root.Length).Split(Path.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries);+ var current = root;foreach (var part in parts){current = Path.Combine(current, part);