objective c - Update File Name on Amazon S3 with IOS -


i know there no folder or directory concept on amazon s3, want update or delete folder according app's users needs.

to delete folder guess have delete files 1 one in folder with:

- (s3deleteobjectresponse *)deleteobjectwithkey:(nsstring *)thekey withbucket:(nsstring *)thebucket 

http://docs.aws.amazon.com/awsiossdk/latest/classes/amazons3client.html#tasks

but there no documentation update object name lets folder name photos , there 2 files in folder image.png , image2.png means have

photos/ photos/image.png photos/image2.png 

i want change folder name photos1 means have change image.png , image2.png to:

photos1/ photos1/image.png photos1/image2.png 

how can accomplish this?

is closest can get? (copyobject)

your thinking correct. can't rename 'folder'. must process each file individually creating copy desired name , deleting original.

also, aware according docs (http://docs.amazonwebservices.com/amazons3/latest/api/index.html?restobjectcopy.html) copy operation not preserve acl, if moved files public need explicitly mark copies public well.

related: how rename folder inside bucket using amazons3.net sdk


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -