MCPcopy Index your code
hub / github.com/Sandpack/nodebox-runtime / readdir

Function readdir

tests/features/package-manager/hoist-pattern.test.ts:76–80  ·  view source on GitHub ↗
(base: string)

Source from the content-addressed store, hash-verified

74 await shell.runCommand('exit', ['0']);
75
76 const readdir = (base: string): Promise<Array<string>> => {
77 return nodebox.fs.readdir(base).then((paths) => {
78 return paths.map((path) => `${base}/${path}`);
79 });
80 };
81
82 // Read the installed packages on the root-level "node_modules",
83 // assuming that they have been hoisted correctly.

Callers 1

Calls 1

readdirMethod · 0.80

Tested by

no test coverage detected