Skip to main content

load_all

Function load_all 

Source
pub fn load_all(packs_dir: &Path) -> HashMap<String, (PathBuf, u64)>
Expand description

Merge every pack index in packs_dir into one hash→(pack, offset) map.

A pack whose index will not parse is skipped rather than failing the whole lookup: one damaged pack should not make the objects in the others unreachable. Missing directory means no packs, which is not an error.