from typing import List
from pathlib import Path


def get_files_of_interest(path: str, file_extensions: List[str]) -> List[str]:
    """
    Get a list of absolute paths to files with specified extension.
    This function searches recursively through the path.

    Usage e.g.
        >>> files = get_files_of_interest('/home/some_dir', ['*.txt', '*.log'])
        >>> print(files)
        >>> ['/home/som_dir/sub_dir/foo.txt', '/home/some_dir/bar.log']
    """

    files = []

    for extension in file_extensions:
        for file in Path(path).rglob(extension):
            files += [file]

    return files