Expand description
The state file (REQ-08): UI choices kept between runs. Keys are
namespaced <dashboard>.<name>, such as board.layout. Values are
strings; structured values are JSON text.
Structs§
Functions§
- directory_
name - The Subspace data directory name of this build’s channel:
subspaceon stable,subspace-<type>for a pre-release type. Config, state and caches that are not product-specific use it. - path
<directory>/state.jsonin the platform state directory:$XDG_STATE_HOMEon Linux, the local data directory elsewhere (Application Support on macOS,%LOCALAPPDATA%on Windows).directory_namegives the directory.- sibling
namebeside the state file, such asgithub-cache.json. Large caches live in files of their own, sostate.jsonstays small.- write_
atomic - Writes
texttofileatomically: a temporary file in the same directory, then a rename over the old file.