Function app_dirs::get_data_root [] [src]

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

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.)