Feature Request: Option to return object metadata with Storage.list()
See original GitHub issueIt’s often very useful to store extra information about the files stored on S3 in metadata. e.g. the row count in a csv file, a user readable name etc, but this info isn’t available using Storage.list().
Storage.list() uses S3.listObjects() which doesn’t return object metadata, so an extra S3.headObject() call would need to be made for each file returned by S3.listObjects() in order to get the metadata for each object, which is a performance hit, but it would be nice to have the option, e.g. to pass in a metadata: true
flag in the options for Storage.list().
If this feature would be acceptable, then I would be happy to create a pull request for it.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:13
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Working with object metadata - Amazon Simple Storage Service
Name Description Can user modify the value?
Date Current date and time. No
Content‑Disposition Object presentational information. Yes
Content‑Length Object size in bytes. No
Read more >Object metadata | Cloud Storage - Google Cloud
Objects stored in Cloud Storage have metadata associated with them. Metadata identifies properties of the object, as well as specifies how the object...
Read more >S3 — Boto3 Docs 1.26.37 documentation - Amazon AWS
A low-level client representing Amazon Simple Storage Service (S3) ... In the Complete Multipart Upload request, you must provide the parts list.
Read more >Managing Buckets - Oracle Help Center
In the Oracle Cloud Infrastructure Object Storage service, a bucket ... object metadata, download bucket objects, and optionally list bucket ...
Read more >Object Storage: An Introduction | IBM
Storing/managing unstructured data · Scalability · Reduced complexity · Disaster recovery/availability · Customizable metadata · Affordability · Cloud compatibility.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m trying to do this as well.
@tiomun this seems like a limitation even from s3 sdk side. There was FR -> https://github.com/aws/aws-sdk-js/issues/1181
I would suggest reaching out S3 directly if this is a feature for s3 to provide. A workaround in mentioned in the linked issue above. You can try to use that.
We will work internally to see if we can introduce a API using HeadObject.