To give a bit of context: I would like the ability to list files present on the board.
I though it would be a small addition ton BangleApps to display such list, and allow to download them.
I've mitigated the encoding issue:
// this is on the BangleApp:
Puck.eval('require("Storage").list().map(encodeURIComponent)', (files,err) => {
if (files===null) return reject(err || "");
files = files.map(decodeURIComponent)
console.log("listFiles", files);
resolve(files)
});
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.
To give a bit of context: I would like the ability to list files present on the board.
I though it would be a small addition ton BangleApps to display such list, and allow to download them.
I've mitigated the encoding issue: