def _get_files_generator(src_dir, files_list):
if files_list:<EOL><INDENT>for d in files_list:<EOL><INDENT>yield {<EOL>'<STR_LIT:src>': os.path.join(src_dir, d['<STR_LIT:src>']),<EOL>'<STR_LIT>': _get_dst_dir(d['<STR_LIT>']),<EOL>'<STR_LIT>': d.get('<STR_LIT>', []),<EOL>}<EOL><DEDENT><DEDENT>
A generator which populates and return a dict.

:param src_dir: A string containing the source directory.
:param files_list: A list of dicts containing the src/dst mapping of files
 to overlay.
:return: dict