Commit e778f976 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

added static method CsstMsDataManager.clear_dir()

parent 58d479f8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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):