From 9234c74350786c18ad5f522963ac87316621d422 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Mon, 1 Apr 2024 15:46:40 +0800 Subject: [PATCH] Update Gmeek.py --- Gmeek.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Gmeek.py b/Gmeek.py index 7175bfa..b1a2ece 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -52,6 +52,14 @@ class GMEEK(): self.defaultConfig() def cleanFile(self): + workspace=os.environ.get('github.workspace') + print(workspace) + if os.path.exists(workspace+self.backup_dir): + shutil.rmtree(workspace+self.backup_dir) + + if os.path.exists(workspace+self.root_dir): + shutil.rmtree(workspace+self.root_dir) + if os.path.exists(self.backup_dir): shutil.rmtree(self.backup_dir)