Skip to main content

Storage size per folder

Comments

3 comments

  • Shirly Manor

    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 a bytes parameter for each resource, which you can use to calculate the overall size of the folder.

    0
  • Mark Redman

    An API method for this simple task would be much appreciated.

    0
  • Shirly Manor

    Here is a sample code:

    https://gist.github.com/shirlymanor/8cd8b95e1132be19eb8cd5e7363828ff

    0

Post is closed for comments.