Update Gmeek.py

This commit is contained in:
Meekdai 2024-04-01 15:22:09 +08:00
parent 150e6f130f
commit eb406080f0

View File

@ -52,10 +52,6 @@ class GMEEK():
self.defaultConfig()
def cleanFile(self):
content_root = self.repo.get_contents(self.root_dir,ref="main")
self.repo.delete_file(content_root.path, "Delete docs folder",content_root.sha,branch="main")
content_backup = self.repo.get_contents(self.backup_dir,ref="main").sha
self.repo.delete_file(content_backup.path, "Delete backup folder",content_backup.sha,branch="main")
if os.path.exists(self.backup_dir):
shutil.rmtree(self.backup_dir)