Forráskód Böngészése

Merge pull request #4121 from cvium/normalize_app_paths

Normalize application paths
Bond-009 4 éve
szülő
commit
6bf0acb854
1 módosított fájl, 7 hozzáadás és 0 törlés
  1. 7 0
      Jellyfin.Server/Program.cs

+ 7 - 0
Jellyfin.Server/Program.cs

@@ -527,6 +527,13 @@ namespace Jellyfin.Server
                 }
             }
 
+            // Normalize paths. Only possible with GetFullPath for now - https://github.com/dotnet/runtime/issues/2162
+            dataDir = Path.GetFullPath(dataDir);
+            logDir = Path.GetFullPath(logDir);
+            configDir = Path.GetFullPath(configDir);
+            cacheDir = Path.GetFullPath(cacheDir);
+            webDir = Path.GetFullPath(webDir);
+
             // Ensure the main folders exist before we continue
             try
             {