更新使用AWS SDK的PHP S3文件夹名称 [英] Updating S3 folder name using AWS sdk for PHP

查看:467
本文介绍了更新使用AWS SDK的PHP S3文件夹名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


       我工作的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.

这篇关于更新使用AWS SDK的PHP S3文件夹名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆