Retool Storage - Add Folder Size

Right now the only way to get the size of a folder is by calculating it manually. This can either be added as JS Queries to every app its needed in, or a workflow can be used (bit of a bummer for free tiers who need to manage workflow run counts):

If the folder metadata contained this value we wouldn't have to calculate this

Current Use Case:
I'm processing large PDF files (100+ pages) by creating an image of every page. To reduce memory footprint I upload these images to a temp folder. I'd like to be able to cap the size of this folder so that when it hits the limit I can upload the base64 data to our database and clear the folder, but having to recalculate this all the time isn't exactly as efficient as checking the value inside an object.

Hi @bobthebear,

Great idea, I agree completely :clap:

I can make a feature request to have folder size in the metadata!

1 Like