- swh.vault.to_disk.get_filtered_files_content(storage: swh.storage.interface.StorageInterface, files_data: List[Dict]) Iterator[Dict[str, Any]]
Retrieve the files specified by files_data and apply filters for skipped and missing contents.
storage – the storage from which to retrieve the objects
files_data – list of file entries as returned by directory_ls()
The entries given in files_data with a new ‘content’ key that points to the file content in bytes.
- swh.vault.to_disk.apply_chunked(func, input_list, chunk_size)
Apply func on input_list divided in chunks of size chunk_size
- class swh.vault.to_disk.DirectoryBuilder(storage, root, dir_id)
Reconstructs the on-disk representation of a directory in the storage.
Initialize the directory builder.
storage – the storage object
root – the path where the directory should be reconstructed
dir_id – the identifier of the directory in the storage
Perform the reconstruction of the directory in the given root.