let rec fold_info f arch acc = match arch with | Arch_dir_pack(_, i, xs) | Arch_dir(_, i, xs) -> List.fold_right (fold_info f) xs (f i acc) | Arch_file(_, i) -> f i acc