pub struct Paths { /* private fields */ }Expand description
Locations of the per-user files under ~/.allot (%USERPROFILE%\.allot\ on Windows).
Not under AppData: Windows redirects writes there from MSIX-packaged apps, such as the
Claude desktop app and every process it starts, into a per-package folder that processes
outside the package cannot see. Sessions in the desktop app and in a terminal would then
get different tokens, databases, and lock files.
Nothing is created here; the daemon creates the directory on first start.
Implementations§
Source§impl Paths
impl Paths
Sourcepub fn from_env() -> Result<Self>
pub fn from_env() -> Result<Self>
Resolves the paths from the home directory in HOME_VAR: USERPROFILE on Windows,
HOME elsewhere.
§Errors
Returns Error::Config when that variable is unset or empty.
Sourcepub fn under(base: impl Into<PathBuf>) -> Self
pub fn under(base: impl Into<PathBuf>) -> Self
Paths rooted at <base>\.allot, for tests and non-default installs.
Sourcepub fn home(&self) -> &Path
pub fn home(&self) -> &Path
The home directory the install lives under, which also holds Claude Code’s .claude
directory and .claude.json.
Sourcepub fn bin_dir(&self) -> PathBuf
pub fn bin_dir(&self) -> PathBuf
Where the installed allot, allotd, and allot-mcp executables live.
Sourcepub fn config_file(&self) -> PathBuf
pub fn config_file(&self) -> PathBuf
The TOML config file.
Sourcepub fn token_file(&self) -> PathBuf
pub fn token_file(&self) -> PathBuf
The bearer token clients send to the daemon.
Sourcepub fn database_file(&self) -> PathBuf
pub fn database_file(&self) -> PathBuf
The SQLite database.