Quantcast
Viewing all articles
Browse latest Browse all 4

Answer by Dennis Traub for How can I move (not copy) a file in AWS S3 using their sdk?

Amazon S3 doesn’t provide an API to move or rename an object from one bucket to another in a single step.

As in your example, you can use copyObject with deleteObject to move or rename an object, by first copying the object to a new name (you can use the same bucket as both the source and destination) and then deleting the object from its old location.

For more information see Performing Operations on Amazon S3 Objects


Viewing all articles
Browse latest Browse all 4

Trending Articles