def map_files(self, base_dir, all_components_list):
    """Apply `assert_single_path_by_glob()` to all elements of `all_components_list`.

    Each element of `all_components_list` should be a tuple of path components, including
    wildcards. The elements of each tuple are joined, and interpreted as a glob expression relative
    to `base_dir`. The resulting glob should match exactly one path.

    :return: List of matched paths, one per element of `all_components_list`.
    :raises: :class:`ArchiveFileMapper.ArchiveFileMappingError` if more or less than one path was
             matched by one of the glob expressions interpreted from `all_components_list`.
    """
    mapped_paths = []
    for components_tupled in all_components_list:
      with_base = [base_dir] + list(components_tupled)
      # Results are known to exist, since they match a glob.
      mapped_paths.append(self.assert_single_path_by_glob(with_base))

    return mapped_paths
def map_files ( self , base_dir , all_components_list ) : mapped_paths = [ ] for components_tupled in all_components_list : with_base = [ base_dir ] + list ( components_tupled ) mapped_paths . append ( self . assert_single_path_by_glob ( with_base ) ) return mapped_paths
Apply `assert_single_path_by_glob()` to all elements of `all_components_list`.

    Each element of `all_components_list` should be a tuple of path components, including
    wildcards. The elements of each tuple are joined, and interpreted as a glob expression relative
    to `base_dir`. The resulting glob should match exactly one path.

    :return: List of matched paths, one per element of `all_components_list`.
    :raises: :class:`ArchiveFileMapper.ArchiveFileMappingError` if more or less than one path was
             matched by one of the glob expressions interpreted from `all_components_list`.