MCPcopy Index your code
hub / github.com/pyodide/pyodide / fsInit

Function fsInit

src/templates/python_cli_entry.mjs:75–81  ·  view source on GitHub ↗
(FS)

Source from the content-addressed store, hash-verified

73);
74
75function fsInit(FS) {
76 const mounts = dirsToMount();
77 for (const mount of mounts) {
78 FS.mkdirTree(mount);
79 FS.mount(FS.filesystems.NODEFS, { root: mount }, mount);
80 }
81}
82
83function patchPlatformForUv(py) {
84 // UV uses sysconfig configs to determine platform details when installing

Callers 1

callFsInitHookFunction · 0.85

Calls 1

dirsToMountFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…