import glob


def get_files(path_name, file_ext='json'):
    """
    get the list of files in the path name
    :param path_name: <str> file path name to search.
    :param file_ext: <str> file extension to save.
    :return: <list> array of files found.
    """
    return glob.glob(path_name + '/*{}'.format(file_ext))