I use Linux + Codesourcery GCC for building - there's info on the GitHub page.
However @cephdon has been working on exactly what you're after - I don't know what state he's at with it though.
The plan was to implement a stream API - much like Node's. That would mean that you could access files the way you're after, but also that you could simply open them and then pipe the stream to the HTTP response - which would make it really easy to send big files.
... it'd be pretty handy when paired with the Waveform API too - if it allowed you to play something straight off the SD card.
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.
I use Linux + Codesourcery GCC for building - there's info on the GitHub page.
However @cephdon has been working on exactly what you're after - I don't know what state he's at with it though.
The plan was to implement a stream API - much like Node's. That would mean that you could access files the way you're after, but also that you could simply open them and then pipe the stream to the HTTP response - which would make it really easy to send big files.
... it'd be pretty handy when paired with the Waveform API too - if it allowed you to play something straight off the SD card.