swh.indexer.metadata_detector module#

swh.indexer.metadata_detector.detect_metadata(file_entries: List[DirectoryEntry]) Dict[str, Set[DirectoryEntry]][source]#

Detects file entries potentially containing metadata.

Parameters:

file_entries – list of file entries

Returns:

{mapping_filenames[name]: Set(DirectoryEntry)} (may be empty)

Return type:

dict