Hello,

I was trying to use IDBFS but I can't get it to be persistent.

I run the following in the console (of firefox)

FS.mkdir("/test");
FS.mount(IDBFS, {}, "/test");
FS.syncfs(true, console.log.bind(console));
//wait the callback to be called
FS.mkdir("/test/test2");
FS.syncfs(true, console.log.bind(console));
//wait the callback to be called
// reload the page
FS.mkdir("/test");
FS.mount(IDBFS, {}, "/test");
FS.syncfs(true, console.log.bind(console));
//wait the callback to be called
FS.readdir("/test");
// ==> Outputs ["..", "."]

Im I doing something wrong ?
Is it because It is local html file (maybe I must use a web-server)

Thank you for your help

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to