Files
rdp-proxy/clients/windows/src/RemoteAccessPlatform.Windows.Settings/StoragePathResolver.cs
T
2026-04-28 22:29:50 +03:00

19 lines
601 B
C#

namespace RemoteAccessPlatform.Windows.Settings;
internal static class StoragePathResolver
{
private static readonly string Root = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
"RemoteAccessPlatform",
"WindowsClient");
public static string RootDirectory => Root;
public static string TokenFilePath => Path.Combine(Root, "auth-state.dat");
public static string SettingsFilePath => Path.Combine(Root, "client-settings.json");
public static void EnsureRoot()
{
Directory.CreateDirectory(Root);
}
}