Skip to content

Commit a484720

Browse files
committed
fix __dump_record
1 parent 3d9fac7 commit a484720

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qcloud_cos/resumable_downloader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def __dump_record(self, record):
152152
logger.debug(
153153
'dump record to {0}, bucket: {1}, key: {2}'.format(record_filepath, self.__bucket, self.__key))
154154
if record_filepath != self.__record_filepath:
155+
os.remove(self.__record_filepath)
155156
os.rename(record_filepath, self.__record_filepath)
156157

157158
def __load_record(self):

0 commit comments

Comments
 (0)