We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e587673 commit e0f8d2cCopy full SHA for e0f8d2c
src/Bucket.ts
@@ -448,10 +448,11 @@ export class Bucket {
448
* @param destinationObjectKey The key of the destination object where the source object will be copied to.
449
*/
450
public async copyObject(sourceObjectKey: string, destinationObjectKey: string) {
451
+ const copySource = `${this.name}/${sourceObjectKey}`;
452
const result = await this.r2.send(
453
new CopyObjectCommand({
454
Bucket: this.name,
- CopySource: sourceObjectKey,
455
+ CopySource: copySource,
456
Key: destinationObjectKey,
457
})
458
);
0 commit comments