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 truthyGobbleon non-rank-0 nodes (becauseopen_qar_inforeturnsGobble()on rank > 0). To avoid a control-flow desync between MPI ranks, broadcast the result from rank 0 withq.bcast_py:# has_file = q.bcast_py(qar_ws.has_regular_file(fn))