Storage size per folder

Comments

3 comments

  • Avatar
    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
    Comment actions Permalink
  • Avatar
    Mark Redman

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

    0
    Comment actions Permalink
  • Avatar
    Shirly Manor

    Here is a sample code:

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

    0
    Comment actions Permalink

Please sign in to leave a comment.