可上传自定义静态页面项目

This commit is contained in:
呆瓜云 2023-09-22 10:58:51 +08:00
parent 131c0aa8e8
commit c5b846a16e

View File

@ -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):