def _GetFileMappingsByPath(self, key_path_upper):
candidate_mappings = []<EOL>for mapping in self._REGISTRY_FILE_MAPPINGS_NT:<EOL><INDENT>if key_path_upper.startswith(mapping.key_path_prefix.upper()):<EOL><INDENT>candidate_mappings.append(mapping)<EOL><DEDENT><DEDENT>candidate_mappings.sort(<EOL>key=lambda mapping: len(mapping.key_path_prefix), reverse=True)<EOL>for mapping in candidate_mappings:<EOL><INDENT>yield mapping<EOL><DEDENT>
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.