def check_filename(name): if name.find('/') != -1: raise HTTPBadRequest(detail=Messages.bad_path) return True