在Amazon s3存储桶中添加文件夹 [英] Add folder in Amazon s3 bucket

查看:592
本文介绍了在Amazon s3存储桶中添加文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用编码将文件夹添加到我的Amazon s3存储桶中. 您能建议我如何实现这一目标吗?

I want to add Folder in my amazon s3 bucket using coding. Can you please suggest me how to achieve this?

推荐答案

Amazon S3中没有文件夹.只是大多数可用的S3浏览器工具都会将部分名称(以斜杠分隔)显示为文件夹.

There are no folders in Amazon S3. It just that most of the S3 browser tools available show part of the key name separated by slash as a folder.

如果确实需要,可以创建一个空对象,并在末尾添加斜杠.例如如果您使用GUI工具和AWS Console打开它,它将看起来像一个文件夹.

If you really need that you can create an empty object with the slash at the end. e.g. "folder/" It will looks like a folder if you open it with a GUI tool and AWS Console.

这篇关于在Amazon s3存储桶中添加文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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