swh.indexer.metadata_detector module#

swh.indexer.metadata_detector.detect_metadata(files: List[DirectoryLsEntry]) Dict[str, List[bytes]][source]#

Detects files potentially containing metadata

Parameters:

file_entries (list) – list of files

Returns:

{mapping_filenames[name]:f[‘sha1’]} (may be empty)

Return type:

dict