MCPcopy Create free account
hub / github.com/SteffMet/tabby-vscode-agent / copyRecursive

Function copyRecursive

scripts/deploy.js:18–31  ·  view source on GitHub ↗
(src, dest)

Source from the content-addressed store, hash-verified

16
17// Helper function to copy files/directories
18function copyRecursive(src, dest) {
19 const stat = fs.statSync(src);
20 if (stat.isDirectory()) {
21 if (!fs.existsSync(dest)) {
22 fs.mkdirSync(dest, { recursive: true });
23 }
24 const items = fs.readdirSync(src);
25 items.forEach(item => {
26 copyRecursive(path.join(src, item), path.join(dest, item));
27 });
28 } else {
29 fs.copyFileSync(src, dest);
30 }
31}
32
33// Main deployment function
34function deploy() {

Callers 1

deployFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected