From c5b846a16ea7d92c5d2f294c1489878474b19963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=86=E7=93=9C=E4=BA=91?= Date: Fri, 22 Sep 2023 10:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E4=B8=8A=E4=BC=A0=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E9=9D=99=E6=80=81=E9=A1=B5=E9=9D=A2=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gmeek.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gmeek.py b/Gmeek.py index 57a7608..b05f298 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -54,8 +54,12 @@ class GMEEK(): if os.path.exists(self.root_dir): shutil.rmtree(self.root_dir) + if os.path.exists("copy/"): + shutil.copytree("copy/",self.root_dir) + else: + os.mkdir(self.root_dir) + os.mkdir(self.backup_dir) - os.mkdir(self.root_dir) os.mkdir(self.post_dir) def defaultConfig(self):