Open mykmelez opened 10 years ago
Maybe somehow the _main.ks file isn't there? Could you try running fs.list("/", console.info.bind(console)) in the web console and see if the file is there?
The file isn't there!
Could you do the same with _fs.exists("/main.ks", console.info.bind(console)) and _fs.stat("/main.ks", (stat) => console.info(stat.isDir))? Just to make sure it's not a FS problem.
fs.exists("/_main.ks", console.info.bind(console)) true fs.stat("/_main.ks", (stat) => console.info(stat.isDir)) false
Last two tests: _asyncStorage.getItem("/main.ks", (blob) => console.info(blob instanceof Blob)); _asyncStorage.getItem("/", (list) => console.info(list.indexOf("main.ks")));
asyncStorage.getItem("/_main.ks", (blob) => console.info(blob instanceof Blob)); true asyncStorage.getItem("/", (list) => console.info(list.indexOf("_main.ks"))); 1
Erm, but:
fs.list("/", console.info.bind(console)); Persistent,_main.ks
Whereas the first time I tried that, it printed an empty string to the console. So the file now exists, but I'm still seeing the exception.
I can reproduce this problem using Nightly.
Tests fail when run in the browser from a file: URL after clearing storage with the following exception: