MCPcopy Create free account
hub / github.com/openai/plugins / listImmediateDirectories

Function listImmediateDirectories

plugins/plugin-eval/src/lib/files.js:157–163  ·  view source on GitHub ↗
(rootPath)

Source from the content-addressed store, hash-verified

155}
156
157export async function listImmediateDirectories(rootPath) {
158 const entries = await fs.readdir(rootPath, { withFileTypes: true });
159 return entries
160 .filter((entry) => entry.isDirectory())
161 .map((entry) => path.join(rootPath, entry.name))
162 .sort();
163}

Callers 3

collectSkillSamplesFunction · 0.90
collectPluginSamplesFunction · 0.90

Calls 2

mapMethod · 0.80
filterMethod · 0.80

Tested by

no test coverage detected