import pathlib


def get_path_name(name: pathlib.Path | str | None) -> pathlib.Path | str:
    """Get the full name from a directory name or path and a file name or path.

    Args:
        name (pathlib.Path | str | None): Directory name or file name.

    Returns:
        str: Full file name.
    """
    if name is None:
        return ""

    return pathlib.Path(name)