

def index(self, req, path):
    index_path = os.path.join(path, self.index_page)
    if (not os.path.isfile(index_path)):
        return exc.HTTPNotFound(comment=path)
    if (not req.path_info.endswith('/')):
        url = (req.path_url + '/')
        if req.query_string:
            url += ('?' + req.query_string)
        return Response(status=301, location=url)
    return self.make_fileapp(index_path)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webob-1.2.3/webob/static.py DirectoryApp.index/VarMisuse@51/60 `index_path`->`path`