MCPcopy Create free account
hub / github.com/LargeWorldModel/LWM / exists

Method exists

scripts/eval_needle_multi.py:224–228  ·  view source on GitHub ↗
(fname)

Source from the content-addressed store, hash-verified

222 results = []
223 completed = set()
224 def exists(fname):
225 if fname.startswith('gs://'):
226 return fs.exists(fname)
227 else:
228 return os.path.exists(fname)
229 if exists(FLAGS.output_file):
230 with open_file(FLAGS.output_file, 'r') as f:
231 results = json.load(f)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected