from pathlib import Path


def get_datasets_in_path(path: Path):
    """
    Gets all the dataset with stored information in a specific path.
    This is used to check which datasets has features extracted.
    """
    return set(file.name[:-5] for file in path.glob('*.json'))