The Storage.write http://www.espruino.com/Reference#l_Storage_write says "You may also create a file and then populate data later as long as you don't try and overwrite data that already exists."
This is what you were doing as you supply one letter 'X' with first write. What if one sends null or empty string as data in first allocation call?
@fanoush 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.
The Storage.write http://www.espruino.com/Reference#l_Storage_write says "You may also create a file and then populate data later as long as you don't try and overwrite data that already exists."
This is what you were doing as you supply one letter 'X' with first write. What if one sends null or empty string as data in first allocation call?