Refactor folder creation function

This commit is contained in:
Hoang Hong Quan
2024-09-13 17:41:54 +07:00
parent 3288145189
commit 2540798def
5 changed files with 16 additions and 18 deletions

View File

@@ -34,7 +34,7 @@ class Updater:
return latest_commit.get("sha") or "0506fb67111d5c5230bf59b826c318ea4251dfc4"
def download_update(self):
self.utils.mkdirs(self.temporary_dir)
self.utils.create_folder(self.temporary_dir)
file_path = os.path.join(self.temporary_dir, os.path.basename(self.download_repo_url))
self.fetcher.download_and_save_file(self.download_repo_url, file_path)
self.utils.extract_zip_file(file_path)