Function brane_cli::utils::get_config_dir
source ยท pub fn get_config_dir() -> Result<PathBuf, UtilError>
Expand description
Edited: uses dirs instead of appdirs and returns UtilErrors when it goes wrong.
Returns the path of the configuration directory. Is guaranteed to be an absolute path when it returns successfully (but not that it also exists!).
Returns
The path of the Brane configuration directory if successful, or a UtilError otherwise.