更新使用AWS SDK的PHP S3文件夹名称文件夹、名称、SDK、AWS

2023-09-11 09:36:22 作者:初暖未至夏已凉

       我工作的S3存储上传和遇到issue.I希望通过API的此处,但没有找到一个解决方案。        我想知道是否有可能实现它呢?我想专家在这里给输入就可以了。

I am working on the S3 bucket uploads and encountered an issue.I want to update the folder name inside one of my bucket.Went through the API here,but did not find a solution. I would like to know if it is possible to achieve it or not?I would like experts over here to give inputs on it.

感谢您的时间。

推荐答案

文件夹是不是真的在S3中的文件夹。他们只是部分对象的密钥。

Folders are not really folders in s3. They are just parts of the object key.

要重命名的文件夹,您将需要重新命名所有的文件夹中对象,包括不同的文件夹中的路径。

To "rename" the folder, you will need to rename all the objects inside the folder to include a different folder in its path.