Can someone please end my misery? I've been trying to figure out how to copy an object inside a bucket/folder for a couple days now. Here's my code that works for when copying inside a bucket -
$s3->batch()->copy_object(array( // Source.
'bucket' => $this->bucketName,
'filename' => $source
),
array( // Target.
'bucket' => $this->bucketName,
'filename' => $target
)
);
$responses = $s3->batch()->send();
I have a folder named "thumbs" inside my main bucket that I want to copy some files around in. I've read about prefixes and delimeters and all of that but I can't find any docs about where to specify that inside the copy object method? I know it's going to be something so easy but I just can't figure it out.
Can someone please help? Thanks a bunch!