def copy_files(files_glob, source_dir, dest_dir):
    """

    :param files_glob: *.yaml
    :param source_dir: source directiry
    :param dest_dir: destination directory
    :return:
    """
    files = glob.iglob(os.path.join(source_dir, files_glob))
    for filename in files:
        if os.path.isfile(filename):
            shutil.copy2(filename, dest_dir)
def copy_files ( files_glob , source_dir , dest_dir ) : files = glob . iglob ( os . path . join ( source_dir , files_glob ) ) for filename in files : if os . path . isfile ( filename ) : shutil . copy2 ( filename , dest_dir )
:param files_glob: *.yaml
    :param source_dir: source directiry
    :param dest_dir: destination directory
    :return: