Updates code to account for MacOS as a UNIX platform

This commit is contained in:
BinaryAlley committed 2024-11-06 20:26:26 +02:00
1 parent d32f124147
commit 01decb27d5
4 files changed
+6 -8

No files matched your search

@@ -35,7 +35,7 @@ public class FileSystemBrowserViewComponent : ViewComponent
{
return View(new
{
Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? @"/" : @"C:\Users\",
Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? @"/" : @"C:\Users\",
ServerBasePath = $"{_serverConfigurationModel.BaseAddress}:{_serverConfigurationModel.Port}/api/v{_serverConfigurationModel.ApiVersion}/",
ClientBasePath = "http://localhost:5012/", // TODO: take from appsettings or environment
ViewMode = FileSystemViewMode.List,