Before opening a bug on the tracker, I wanted to double check this behaviour.
This code opens a file in append mode, and writes some text in it.
const Storage = require('Storage')
const name = 'test'
Storage.erase(name)
const file = Storage.open(name, 'a')
console.log('-> files', Storage.list())
// file not in the list
file.write('whatever')
console.log('-> files', Storage.list())
// file exists, but has a \1 octal escape sequence appended to its name
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 there!
Before opening a bug on the tracker, I wanted to double check this behaviour.
This code opens a file in append mode, and writes some text in it.
this gives:
This
\1
at the end: is it expected?