diff --git a/csst_common/file_recorder.py b/csst_common/file_recorder.py index d01e3e62a15b2946ebce8a171b06308ae20d8915..aa9e4be771030bfeabe3615a8593d57801fc0d0d 100644 --- a/csst_common/file_recorder.py +++ b/csst_common/file_recorder.py @@ -97,3 +97,7 @@ class FileRecorder(list): return f"{len(self)} alleged, " \ f"{len(self) - sum(self.to_table()['existence'])} missing, " \ f"{sum(self.to_table()['existence'])} to db" + + def is_good(self): + """ Check if all alleged files exist. """ + return all(self.to_table()['existence'])