diff --git a/csst_common/data_manager.py b/csst_common/data_manager.py index a29db5348e538cf09318e6f3aff2704ea630de50..e3bcfc363729effd1c3a36b6fc74f4c5082d8817 100644 --- a/csst_common/data_manager.py +++ b/csst_common/data_manager.py @@ -506,6 +506,10 @@ class CsstMsDataManager: """ Remove L1 (sub-)directory. """ os.system(f"rm -rf {os.path.join(self.dir_l1, dir_name)}") + @staticmethod + def clear_dir(dir_path): + os.system(f"rm -rf {dir_path}/*") + # DFS interfaces @property def dfs_node(self):