Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Download entire directory in a bucket of MinIO

Tags:

python

minio

Here is my MinIO tree

bucket1
|
|-dir1
|-dir2
    |-file1
    |-file2
    |-file3

I want to download the entire directory "dir2" using python API.

The only way I can think of is to download files one by one. Is there another way / API call to download entire directory?

like image 719
warunapww Avatar asked Oct 29 '25 01:10

warunapww


1 Answers

If you simply need to download the files, use the Minio client copy:

mc cp <source> <destination> --recursive

like image 56
AshithR Avatar answered Oct 31 '25 15:10

AshithR



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!