Basically, tries to resolve the folder ~/.local/share/brane/data
.
create
: If set to true, creates the missing directories instead of throwing errors.A PathBuf with the absolute path to the datasets directory that is also guaranteed to exist.
This function errors if we failed to get the Brane data directory (no confusion at all, lol) or the directory did not exist (if create
is false) / was not accessible.