from typing import Dict
import pathlib


def dir_parser(path_to_dir: str) -> Dict[str, Dict[str, str]]:
    """
    Parses the given directory, and returns the path, stem and suffix for files.
    """
    files = pathlib.Path(path_to_dir).resolve().glob("*.*")

    files_data = {}

    for file in files:
        files_data[file.stem] = {
            "suffix": file.suffix,
            "path": file.as_posix(),
        }

    return files_data