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

Commit

Permalink
fix: 🔥 remove downloading dir at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Jun 26, 2022
1 parent c22014b commit e68d228
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
def main():
if not os.path.isdir(PATH.DATA_DIR):
os.mkdir(PATH.DATA_DIR)
if not os.path.isdir(PATH.DOWNLOADING_DIR_PATH):
os.mkdir(PATH.DOWNLOADING_DIR_PATH)
if os.path.isdir(PATH.DOWNLOADING_DIR_PATH):
shutil.rmtree(PATH.DOWNLOADING_DIR_PATH)
os.mkdir(PATH.DOWNLOADING_DIR_PATH)

factory = Factory()
Main(factory).main()
Expand Down

0 comments on commit e68d228

Please sign in to comment.