remove tmp if size overflow
parent
76128e7339
commit
2822f7cffa
|
|
@ -113,5 +113,8 @@ def dl(url, folder, filename, filepath):
|
|||
os.rename(dl_file_path, file_path)
|
||||
util.printD(f"File Downloaded to: {file_path}")
|
||||
return file_path
|
||||
elif downloaded_size > total_size:
|
||||
# remove temporary-file
|
||||
os.remove(dl_file_path)
|
||||
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue