Crate config_file_handler[][src]

Config File Handler

Create, read and write JSON-encoded config files.

Structs

FileHandler

Struct for reading and writing config files.

ScopedUserAppDirRemover

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.