from pathlib import Path


def checkIsEndpoint(folder_path: Path):
    """Returns True if all files within the directory are of the expected extension"""
    list_files = folder_path.iterdir()
    if all([file.is_file() for file in list_files]):
        return True
    return False