from pathlib import Path
from typing import List


def get_folder_paths_and_names(path_to_parent_dir: Path) -> List[Path]:
    """
    Gets the paths and names of the folders in a directory.

    Arguments:
    path_to_parent_dir: str or pathlike, path to the parent directory

    Returns:
    Tuple of lists with the paths to the subfolders and the names of the subfolders

    Raises:
    None
    """
    path_to_iterate = Path(path_to_parent_dir).resolve()
    return [folder for folder in path_to_iterate.iterdir() if folder.is_dir()]