def is_dir_url(link):
 link_path = url_to_path(link.url_without_fragment)
 return os.path.isdir(link_path)

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