code: def _GetFileMappingsByPath(self, key_path_upper):
      
      candidate_mappings = []
      for mapping in self._REGISTRY_FILE_MAPPINGS_NT:
        if key_path_upper.startswith(mapping.key_path_prefix.upper()):
          candidate_mappings.append(mapping)
  
      # Sort the candidate mappings by longest (most specific) match first.
      candidate_mappings.sort(
          key=lambda mapping: len(mapping.key_path_prefix), reverse=True)
      for mapping in candidate_mappings:
        yield mapping
docs: Retrieves the Windows Registry file mappings for a specific path.
  
      Args:
        key_path_upper (str): Windows Registry key path, in upper case with
            a resolved root key alias.
  
      Yields:
        WinRegistryFileMapping: Windows Registry file mapping.