@@ -326,7 +326,8 @@ func (cp *downloadCheckpoint) prepare(bucket *Bucket, objectKey, filePath string
}
func (cp *downloadCheckpoint) complete(cpFilePath string) error {
- return os.Remove(cpFilePath)
+ os.Remove(cpFilePath)
+ return nil
// 并发带断点的下载
@@ -365,7 +365,7 @@ func complete(cp *uploadCheckpoint, bucket *Bucket, parts []UploadPart, cpFilePa
if err != nil {
return err
- err = os.Remove(cpFilePath)