def _get_latest_log_files(name, testing=False) -> List[str]:
    'Returns a list with the paths of all available logfiles for `name` sorted by latest first.'
    log_dir = dirs.get_log_dir(name)
    files = filter((lambda filename: (name in filename)), os.listdir(log_dir))
    files = filter((lambda filename: (('testing' in filename) if testing else ('testing' not in filename))), files)
    return [os.path.join(log_dir, filename) for filename in sorted(files, reverse=True)]
Returns a list with the paths of all available logfiles for `name` sorted by latest first.
def _get_latest_log_files(name, testing=False) -> List[str]:
    
    log_dir = dirs.get_log_dir(name)
    files = filter((lambda filename: (name in filename)), os.listdir(log_dir))
    files = filter((lambda filename: (('testing' in filename) if testing else ('testing' not in filename))), files)
    return [os.path.join(log_dir, filename) for filename in sorted(files, reverse=True)]