UserPaths class abstract final

Per-user folders shared by the just tool and what builds on it, outside any project: caches and settings.

Empty variables count as unset, and so do relative XDG_* ones, as the XDG Base Directory specification says.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

cacheDir(String name, {Map<String, String>? environment}) → String?
A cache folder called name: %LOCALAPPDATA%\<name> on Windows, ~/Library/Caches/<name> on macOS, $XDG_CACHE_HOME/<name> (or ~/.cache/<name>) elsewhere. Null when the home folder can't be found.
configDir({Map<String, String>? environment}) → String?
The just tool's settings folder: %APPDATA%\just_core_cli on Windows, ~/Library/Application Support/just_core_cli on macOS, $XDG_CONFIG_HOME/just_core_cli (or ~/.config/just_core_cli) elsewhere — unless JUST_CORE_CLI_CONFIG_DIR names one. Null when the home folder can't be found.