Tested my code once more to verify that both news.txt and news.txt\1 are recognised. IT DOES NOT :O
news.txt
news.txt\1
var Storage = require("Storage"); l=Storage.list(); print(l); function exists(name){ return Boolean(Storage.open(name,"r").addr); } print(exists("news.txt")); print(exists("news.txt\1")); print(exists("nonews.txt")); print(exists("ABC.txt"));
Output is:
[ "news.txt\1", "weath0.txt\1", "weath1.txt\1", "stocks.txt\1", "messages.txt\1", "ABC.txt" ] true false false false
The mix of the 2 storage versions does not feel like a blessing anymore :)
@gerardwr 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.
Tested my code once more to verify that both
news.txt
andnews.txt\1
are recognised.IT DOES NOT :O
Output is:
The mix of the 2 storage versions does not feel like a blessing anymore :)