Hi. I'm afraid there isn't a way of doing that at the moment. I think about all you could do is to try and create a file of a certain size and then see if it failed or not.
You could also scan over all files on the SD card and check their sizes. That won't tell you how much space is left but at least it will give you some idea of how much is used.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi. I'm afraid there isn't a way of doing that at the moment. I think about all you could do is to try and create a file of a certain size and then see if it failed or not.
You could also scan over all files on the SD card and check their sizes. That won't tell you how much space is left but at least it will give you some idea of how much is used.