qlat.QarFile.has

QarFile.has(self, string fn)

Check if an entry exists in this QAR archive (regular file or otherwise). # When the QAR was opened via open_qar_info, this method returns a truthy Gobble on non-rank-0 nodes. Broadcast the result from rank 0 with q.bcast_py to avoid a control-flow desync between MPI ranks:

#
has_entry = q.bcast_py(qar_ws.has(fn))