#How to read the size of my project?

4 messages · Page 1 of 1 (latest)

fallen ice

I host my bot on Cybrancee and have a storage of 512mb
I'm going to store images etc.
I want to get notified when I reach a certain project size.
Could I somehow make my bot ping me when it's size reaches 450mb for example?

So my question is
How to access the size of some specific folders

short pythonBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
ruby path

Have a threshold for your images folder that you update manually considering your VPS resources

And get the .size of each image inside using stat or statSync from the FS module