def file_response(path):
    resp = Response()
    if exists(path):
        resp.app_iter = FileIterator(path)
    else:
        raise exc.HTTPNotFound("No file found with path %s." % path)
    return resp
dataset/ETHPy150Open galaxyproject/pulsar/pulsar/web/framework.py/file_response/original