Search code examples
pythonclientmetadatatraversalminio

Retrieving object metadata while traversing S3 using Minio client's list_objects method


I am using the list_objects method of the python minio client and trying to retrieve the metadata for each object while traversing folders in S3. I attempted to do this by setting the include_user_meta parameter of the method to True. However, when I look at the returned objects, the metadata of the returned objects is not included. I checked the S3 API Reference documentation for the ListObjectsV2 endpoint and there is no mention of a metadata parameter that could be passed to include the metadata during file traversal.

Is there some other way to retrieve the metadata for each object while traversing a folder in S3 (without firing off one request for each retrieved object), or is this simply not possible and there is a bug in the python minio client?


Solution

  • Python API documentation says that include_user_meta is "MinIO specific flag to control to include user metadata". Probably other S3 implementations do not support it.