[][src]Function app_dirs2::get_app_root

pub fn get_app_root(
    t: AppDataType,
    app: &AppInfo
) -> Result<PathBuf, AppDirsError>

Returns (but does not create) path to app-specific 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 app_root.)