Hi there,
in V2 we used the /v2/assets/:asset_id and /v2/assets/:asset_id/children endpoints to fetch folder size information. These endpoints used to include a “filesize” field which showed the total size of all assets in that folder added up.
That allowed us to easily display how content was distubuted in the storage pool in a WinDirStat/TreeSize kinda way without scanning the entire storage.
The current v4 implementation on /v4/accounts/:account_id/folders/:folder_id/children shows filesize only on files but not on folders. To get the size value now would require accessing all subdirectories recursively and adding up all the files.
Though it seems the information is still available internally, since using the new search can find folders filtered by size.
It would be lovely to know if thats a feature that will return in a future update.
Thanks y’all.
Jannik