Fixe temporary files were not deleted as expected
This commit is contained in:
parent
2b2a2e69f3
commit
93f973df50
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ class Download:
|
|||
if not os.path.isdir(self.download_dir):
|
||||
return
|
||||
|
||||
tmpfilename = self.tmpfilename.rsplit('.')[0]
|
||||
tmpfilename = os.path.basename(self.tmpfilename)
|
||||
def is_tmpfile(filename):
|
||||
return filename.startswith(tmpfilename)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue