from pathlib import Path


def __get_files(dir, filepattern):
  """Concatenates a directory and filepattern and returns all matching paths."""
  return [file for file in Path(dir).rglob(filepattern) if file.is_file()]