MCPcopy Create free account
hub / github.com/adobe/react-spectrum / copyDirectory

Function copyDirectory

packages/dev/s2-docs/scripts/generateMcpb.mjs:271–277  ·  view source on GitHub ↗
(from, to)

Source from the content-addressed store, hash-verified

269}
270
271function copyDirectory(from, to) {
272 fs.mkdirSync(path.dirname(to), {recursive: true});
273 fs.cpSync(from, to, {
274 recursive: true,
275 dereference: true
276 });
277}
278
279const targets = requestedLibraries.length > 0 ? requestedLibraries : Object.keys(libraries);
280

Callers 2

generateBundleFunction · 0.85
copyDependencyTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected