def METHOD_NAME(dirname, file):
    # checks if the file is bad index.html document [i.e not generated]
    if file != 'index.html':
        return 0
    elif file == 'index.html' and dirname.find('docs/website') >= 0:
        return 0
    else:
        return 1