Fastest way to calculate folder size?

I need to calculate the size of a folder within a bucket without iterating through all of the objects’ metadata, such as with S3 SDK’s ListObjects feature.

Does Store provide any method for fetching storage metrics down to a bucket folder level?

You can see buckets from the web dashboard, but I wouldn’t know if it’s possible to see folders within buckets

You may use rclone ncdu storj:, if you configured rclone

If you want to calculate programmatically, you need to use a list of Objects and iterate over it to get the sum of the size of each Object.

1 Like