pub fn get_dataset_dir<S: AsRef<str>>(name: S) -> Result<PathBuf, UtilError>
Expand description
Gets the directory where we likely stored a dataset.
Does not guarantee that the directory also exists; check ensure_dataset_dir()
for that.
§Generic arguments
S
: The &str-likename
of the dataset to generate the path for.
§Arguments
name
: The name of the dataset we want to get the path of.
§Returns
A PathBuf with the (absolute path to the) directory.
§Errors
This function may error if we failed to get the parent datasets directory (see get_datasets_dir()
).