MCPcopy Index your code
hub / github.com/python/cpython / rootDirsToMount

Function rootDirsToMount

Platforms/emscripten/node_entry.mjs:15–20  ·  view source on GitHub ↗
(Module)

Source from the content-addressed store, hash-verified

13}
14
15function rootDirsToMount(Module) {
16 return fs
17 .readdirSync("/")
18 .filter((dir) => !["dev", "lib", "proc"].includes(dir))
19 .map((dir) => "/" + dir);
20}
21
22function mountDirectories(Module) {
23 for (const dir of rootDirsToMount(Module)) {

Callers 1

mountDirectoriesFunction · 0.85

Calls 2

mapMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…