Storage size per folder
Is there any way to see the storage space each of my folders is taking? I am doing a clean-up exercise and need this information to see most used resource.
0
-
While there isn't a straight-forward way to know the size of each folder, you can utilize the Admin API to achieve this. You can list all resource within a specific folder using the
prefix
parameter. The API response includes abytes
parameter for each resource, which you can use to calculate the overall size of the folder.0 -
An API method for this simple task would be much appreciated.
0 -
Here is a sample code:
https://gist.github.com/shirlymanor/8cd8b95e1132be19eb8cd5e7363828ff
0
Post is closed for comments.
Comments
3 comments