Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
fix(download): 🐛 move downloaded file out of temp dir to avoid delete
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Jun 16, 2022
1 parent 266e925 commit 6b60a3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ def make_zip(self):
)
z.write(zf_path, arcname=arcname)

# Move to out of temp dir
if PATH.TEMP_DIR_PATH in self.zip_file_path:
shutil.move(self.zip_file_path, '.')

def clear_file(self):
# 关闭日志
self.logger.close()
Expand Down

0 comments on commit 6b60a3a

Please sign in to comment.