from pathlib import Path


def get_file_base(path: Path) -> Path:
    """Removes all extensions (as in everything after the first dot in the filename) from a Path

    :param path: Original Path obj
    :return: Path obj without any extensions
    """
    return Path(path.parent, path.name.split(".")[0])