from pathlib import Path


def make_dir(new_dir, path):
    """Creates a directory if it doesn't exist.

    Args:
        new_dir (str): Name of the new directory to be created.
        path (str): Path where the new directory will be created.

    Returns:
        str: Path of the newly created directory.

    """
    new_path = path / Path(new_dir)
    new_path.mkdir(exist_ok=True)

    return new_path