MCPcopy
hub / github.com/apache/echarts / readFilePaths

Function readFilePaths

test/runTest/visual-test-copy-from-examples.js:111–120  ·  view source on GitHub ↗

* @return Absolute path list.

({patterns, cwd})

Source from the content-addressed store, hash-verified

109 * @return Absolute path list.
110 */
111async function readFilePaths({patterns, cwd}) {
112 assert(patterns && cwd);
113 return (
114 // Return an array. Relative path.
115 await globby(patterns, {cwd})
116 ).map(srcPath => ({
117 relative: srcPath,
118 absolute: nodePath.resolve(cwd, srcPath),
119 }));
120}
121
122main();

Callers 1

mainFunction · 0.85

Calls 2

assertFunction · 0.50
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…