13 lines
324 B
Python
13 lines
324 B
Python
|
|
from minio import Minio
|
||
|
|
|
||
|
|
from app.core.config import MINIO_PORT, MINIO_IP, MINIO_ACCESS, MINIO_SECRET, MINIO_SECURE
|
||
|
|
|
||
|
|
minio_client = Minio(
|
||
|
|
f"{MINIO_IP}:{MINIO_PORT}",
|
||
|
|
access_key=MINIO_ACCESS,
|
||
|
|
secret_key=MINIO_SECRET,
|
||
|
|
secure=MINIO_SECURE)
|
||
|
|
|
||
|
|
for i in minio_client.list_objects('test'):
|
||
|
|
print(i.object_name)
|