Can you get the directory listing if you have just the code to read a directory in there? Or is it that you have a lot of other code that is using up memory?
It seems that listing 40 files shouldn't usually use up anywhere close to all of the Puck's memory.
If it's the case that you have lots of code there's probably a few things you can do to get memory usage down - http://www.espruino.com/Code+Style#other-suggestions would be a good start
© Espruino, powered by microcosm.
Report a problem