def make_relative(path: str, root_path: str) -> str:
    """Make path relative with respect to a
    root directory

    Arguments:
        path (str): current path.
        root_path (str): root directory path.

    Returns:
        str: relative path.
    """

    r_path = path.replace(root_path, '')
    if r_path:
        if r_path[0] == '/':
            r_path = r_path[1:]

    return r_path