pub fn get_data_root(t: AppDataType) -> Result<PathBuf, AppDirsError>
Expand description

Returns (but does not create) path to top-level data directory for provided data type.

A result of Ok means that we determined where the data SHOULD go, but it DOES NOT guarantee that the directory actually exists. (See data_root.)