qlat.QarFile.has_regular_file

QarFile.has_regular_file(self, string fn)

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

#
has_file = q.bcast_py(qar_ws.has_regular_file(fn))