Class AppPaths
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
Where the app keeps what it writes about itself: settings, logs, caches, the Java runtimes it downloads, the Playit agent. One place, so a change to where that is (a portable mode, a test folder) is a change to one line instead of to nineteen.
public static class AppPaths
- Inheritance
-
AppPaths
- Inherited Members
Remarks
This is the app's own folder under the user's application data (%APPDATA% on Windows,
~/.config on Linux, ~/Library/Application Support on macOS). The folders of the
servers themselves are not here: the user picks those, and ServerStorageService
remembers them.
The path is read on every call rather than kept in a static field: it is cheap, and a test that
points APPDATA somewhere else after the type is loaded still gets what it asked for.
Properties
DataDir
The app's own data folder. Not created: whoever writes into it creates it.
public static string DataDir { get; }
Property Value
Methods
In(params string[])
A path inside DataDir, built from parts.
public static string In(params string[] parts)
Parameters
partsstring[]