Merge pull request #627 from cvubrugier/issue-626-multipart-remove-parts

fix: fix removal of the upload directory in posix CompleteMultipartUpload
This commit is contained in:
Ben McClelland
2024-06-12 08:22:23 -07:00
committed by GitHub

View File

@@ -656,7 +656,7 @@ func (p *Posix) CompleteMultipartUpload(ctx context.Context, input *s3.CompleteM
}
// cleanup tmp dirs
os.RemoveAll(upiddir)
os.RemoveAll(filepath.Join(bucket, objdir, uploadID))
// use Remove for objdir in case there are still other uploads
// for same object name outstanding, this will fail if there are
os.Remove(filepath.Join(bucket, objdir))