from pathlib import Path
from typing import List


def get_input_files(dirname: Path, *ext) -> List[Path]:
    """Return sorted files in passed directory, filtered by extension.

    :param dirname:  Path, path to input directory
    :param *ext:  optional iterable of arguments describing permitted file extensions
    """
    return sorted(fname for fname in dirname.iterdir() if fname.suffix in ext)