MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / copyTree

Function copyTree

scripts/build-compliance.cjs:80–91  ·  view source on GitHub ↗
(srcDir, dstDir)

Source from the content-addressed store, hash-verified

78}
79
80function copyTree(srcDir, dstDir) {
81 ensureDir(dstDir);
82 for (const entry of fs.readdirSync(srcDir, { withFileTypes: true })) {
83 const src = path.join(srcDir, entry.name);
84 const dst = path.join(dstDir, entry.name);
85 if (entry.isDirectory()) {
86 copyTree(src, dst);
87 } else {
88 fs.copyFileSync(src, dst);
89 }
90 }
91}
92
93function readYamlFrontmatter(filePath) {
94 const doc = yaml.load(fs.readFileSync(filePath, 'utf8'));

Callers 2

mirrorProtocolsToDomainsFunction · 0.70
buildToFunction · 0.70

Calls 1

ensureDirFunction · 0.70

Tested by

no test coverage detected