diff options
| author | theguymadmax <theguymadmax@proton.me> | 2026-07-30 19:13:32 -0400 |
|---|---|---|
| committer | theguymadmax <theguymadmax@proton.me> | 2026-07-30 19:13:32 -0400 |
| commit | 314004bc1939f531b22ee3303df7005e1b64f7c2 (patch) | |
| tree | 5636f4c100d000856e2874b51463836748c674eb /Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs | |
| parent | b15d3c9ad31d6a2f7e940d0372d9f3b93c5f9e95 (diff) | |
Fix storage lookup for Windows
Diffstat (limited to 'Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs b/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs index 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); |
