def is_dir_url(link):<EOL>
link_path = url_to_path(link.url_without_fragment)<EOL>return os.path.isdir(link_path)<EOL>
Return whether a file:// Link points to a directory.

    ``link`` must not have any other scheme but file://. Call is_file_url()
    first.