This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

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

Post is closed for comments.