19 lines
601 B
C#
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);
|
|
}
|
|
}
|