Function brane_cli::utils::get_datasets_dir

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

Returns the general data directory based on the user’s home folder.
Basically, tries to resolve the folder ~/.local/share/brane/data.
Note that this does not mean that this directory exists.

§Returns

A PathBuf with an absolute path to the data directory.

§Errors

This functions fails if we failed to get the Brane data directory (no confusion at all lol).