Function brane_cli::utils::get_data_dir

source ·
pub fn get_data_dir() -> Result<PathBuf, UtilError>
Expand description

Returns the general data directory based on the user’s home folder.

Arguments

  • create: If set to true, creates the missing file and directories instead of throwing errors.

Returns
A PathBuf with the absolute path that is guaranteed to exist, or an UtilError otherwise.