嵌套桶 minio
有没有一种方法可以使用Python在Minio中创建一个嵌套的水桶?
但是,我还没有找到有关如何这样做的确切文档,但我读了一些答案,它可以使用fput_object命令在存储桶内创建一个文件夹(与桶相同?)。
我不确定如何继续!超级新手!请帮忙!
Is there a way to create a nested bucket in minio using python?
I have not found exact documentation on how to do so however, I read some answer that one can create a folder (is that the same as a bucket?) inside a bucket using fput_object command.
I am not sure how to proceed! Super new to minio! Please help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不过,我得到了答案,我会将解决方案留在这里,以防其他人陷入同一个地方。
这是我错过的关于 put_object 的一个简单细节。
将对象添加到存储桶时可以创建文件夹!
这是方法,
minioclient.put_object(
存储桶名称,
f“文件夹名称/”+“对象名称”,
数据,
长度
)
I got the answer however, I will leave the solution here just in case someone else gets stuck at the same place.
It was a simple detail I missed about put_object.
A folder can be created while adding an object to a bucket!
Here is how,
minioclient.put_object(
bucket_name,
f"folder_name/" + "object_name",
data,
length
)