I see there is an AWS::S3::S3Object.rename
but I can't do it with folders:
AWS::S3::Base.establish_connection!(
:access_key_id => APP_CONFIG[:s3_access_key_id],
:secret_access_key => APP_CONFIG[:s3_secret_access_key]
)
AWS::S3::S3Object.rename(
"assets/old_name_folder",
"assets/new_name_folder",
APP_CONFIG[:s3_bucket]
)
The old_name_folder contains files and folders and I want the renaming to respect this.
I'm obtaining: AWS::S3::NoSuchKey (The specified key does not exist.)
I don't know if I'm doing something wrong or it is just not possible to rename s3 folders.