2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
2
There is no direct way to rename a file or folder in S3. What you have to do is copy the existing file with a new name and delete the old one. For example:
aws s3 --recursive mv s3://<bucketname>/<folder_name_from> s3://<bucket>/<folder_name_to>
The same thing can be completed through the AWS Console, but you specifically called out performance, so CLI would be the way to go, especially if there's hundreds/thousands of files or folders.
répondu il y a 2 ans
0
What worked for me to rename an empty S3 folder was aws s3 mv s3://bucket-name/folder-name/ s3://bucket-name/folder-new-name/
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 mois
+1 to Joe's answer. We were answering at the same time :) didn't see until I hit submit