def appenddir(path: str, dirname: str) -> str:
    """
    Append a dirname to a path string

    :param str path: path where to append
    :param str dirname: path to be appended
    :return: path/dirname
    """
    if path.endswith('/'):
        return '{}{}'.format(path, dirname)
    else:
        return '{}/{}'.format(path, dirname)