Reputation: 31
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!
Upvotes: 1
Views: 1691
Reputation: 31
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 )
Upvotes: 2