using HyperBooru.ApiModels; using System.Runtime.InteropServices; namespace HyperBooru.ApiClient; internal static class Util { internal static PathType CurrentOSPathType { get { KeyValuePair[] osPlatformMap = [ new(OSPlatform.Windows, PathType.Windows), new(OSPlatform.OSX, PathType.Unix), new(OSPlatform.Linux, PathType.Unix), new(OSPlatform.FreeBSD, PathType.Unix), ]; return osPlatformMap.First(kv => RuntimeInformation.IsOSPlatform(kv.Key)).Value; } } }