remove resume file once upload is done
This commit is contained in:
parent
59151b04fd
commit
8d6cdeee19
1 changed files with 3 additions and 0 deletions
|
@ -642,6 +642,9 @@ class API(ox.API):
|
|||
}, r, indent=2)
|
||||
done += len(chunk)
|
||||
chunk = f.read(CHUNK_SIZE)
|
||||
if os.path.exists(self._resume_file):
|
||||
os.unlink(self._resume_file)
|
||||
resume = None
|
||||
print ' ' * 80
|
||||
return data and 'result' in data and data.get('result') == 1
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue