emscripten-core / emscripten-core/emscripten
How to use file system NODEFS
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
emcc -v:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.0 (8e1e305519e1027726a48861a1fec5662f7e18a2)
clang version 14.0.0 (https://github.com/llvm/llvm-project 1a929525e86a20d0b3455a400d0dbed40b325a13)
Target: wasm32-unknown-emscripten
Thread model: posix
I used -lnodefs.js ;
module.FS.mkdir("/rootDir");
module.FS.mount( module.NODEFS, { root: "H:"} ,"/rootDir"} );
But The first file read is normal ,If read a file in the same directory again, the file cannot be found
Contributor guide
Assessment
This issue has not been assessed yet.