MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / wasmfs_create_root_dir

Function wasmfs_create_root_dir

system/lib/wasmfs/wasmfs.cpp:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90// Special backends that want to install themselves as the root use this hook.
91// Otherwise, we use the default backends.
92__attribute__((weak)) extern "C" backend_t wasmfs_create_root_dir(void) {
93#ifdef WASMFS_CASE_INSENSITIVE
94 return createIgnoreCaseBackend([]() { return createMemoryBackend(); });
95#else
96 return createMemoryBackend();
97#endif
98}
99
100std::shared_ptr<Directory> WasmFS::initRootDirectory() {
101 auto rootBackend = wasmfs_create_root_dir();

Callers 1

initRootDirectoryMethod · 0.70

Calls 2

createIgnoreCaseBackendFunction · 0.85
createMemoryBackendFunction · 0.85

Tested by

no test coverage detected