Function brane_cli::utils::ensure_config_dir
source · pub fn ensure_config_dir(create: bool) -> Result<PathBuf, UtilError>
Expand description
Makes sure that Brane’s config directory exists and then returns its path.
Arguments
create
: If true, creates the directory if it does not exist; if false, throws an error.
Returns
The path of the Brane configuration directory if successful, or a UtilError otherwise.