Expand description
§Config File Handler
Create, read and write JSON-encoded config files.
Structs§
- File
Handler - Struct for reading and writing config files.
- Scoped
User AppDir Remover - RAII object which removes the
user_app_dir()
when an instance is dropped.
Enums§
- Error
- Error types.
Functions§
- cleanup
- Remove the file from every location where it can be read.
- current_
bin_ dir - The full path to the directory containing the currently-running binary. See also an example config file flowchart.
- exe_
file_ stem - The file name of the currently-running binary without any suffix or extension. For example, if
the binary is “C:\Abc.exe” this function will return
Ok("Abc")
. - set_
additional_ search_ path - Set an additional search path. This, if set, will be tried before the other default ones.
- system_
cache_ dir - The full path to a system cache directory available for all users. See also an example config file flowchart.
- user_
app_ dir - The full path to an application support directory for the current user. See also an example config file flowchart.