def url_path(url):
    """
    Construct a path string for a Hyperlink URL.

    :type url: hyperlink.URL
    :param url: URL.
    :rtype: unicode
    """
    return (u'/' if url.rooted else u'') + u'/'.join(url.path)