Classify the input resource as a directory index or not.

def is_directory_index(resource):
    """
    Classify the input resource as a directory index or not.
    """
    remote_regexp = re.compile(r"^https?://(.+)/?$", re.I)
    result = remote_regexp.match(resource)

    if result is not None:
        juicer.utils.Log.log_debug("%s matches directory index regexp" % resource)
        return True
    else:
        juicer.utils.Log.log_debug("%s doesn't match directory index regexp" % resource)
        return False