Initial project snapshot
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user