Ok, so:
require("foo")
require("fs")
require("fs").readdir()
@Gordon started
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.
Ok, so:
require("foo")
-> hang*
require("fs")
-> ok*
require("fs").readdir()
-> hangI'd be pretty sure it's the way your SD card is formatted, or the size of it. Having said that I've tried up to 16gb cards and they seem to work fine.