MCPcopy Index your code
hub / github.com/QwikDev/qwik / cpSync

Function cpSync

scripts/validate-cli.ts:173–188  ·  view source on GitHub ↗
(src: string, dest: string)

Source from the content-addressed store, hash-verified

171}
172
173function cpSync(src: string, dest: string) {
174 // cpSync() not available until Node v16.7.0
175 try {
176 const stats = statSync(src);
177 if (stats.isDirectory()) {
178 mkdirSync(dest, { recursive: true });
179 readdirSync(src).forEach((childItem) => {
180 const childSrc = join(src, childItem);
181 const childDest = join(dest, childItem);
182 cpSync(childSrc, childDest);
183 });
184 } else {
185 copyFileSync(src, dest);
186 }
187 } catch (e) {}
188}
189
190async function copyLocalQwikDistToTestApp(appDir: string) {
191 const srcQwikDir = join(__dirname, '..', 'packages', 'qwik');

Callers 1

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…